Rename initialize to sync, since it does the same thing
This commit is contained in:
parent
e2d733a01a
commit
0d3c9390c6
3 changed files with 5 additions and 5 deletions
|
|
@ -566,7 +566,7 @@ ChatPage::ChatPage(QSharedPointer<UserSettings> userSettings, QWidget *parent)
|
|||
connect(this,
|
||||
&ChatPage::initializeViews,
|
||||
view_manager_,
|
||||
[this](const mtx::responses::Rooms &rooms) { view_manager_->initialize(rooms); });
|
||||
[this](const mtx::responses::Rooms &rooms) { view_manager_->sync(rooms); });
|
||||
connect(this,
|
||||
&ChatPage::initializeEmptyViews,
|
||||
view_manager_,
|
||||
|
|
@ -582,7 +582,7 @@ ChatPage::ChatPage(QSharedPointer<UserSettings> userSettings, QWidget *parent)
|
|||
nhlog::db()->error("failed to retrieve invites: {}", e.what());
|
||||
}
|
||||
|
||||
view_manager_->initialize(rooms);
|
||||
view_manager_->sync(rooms);
|
||||
removeLeftRooms(rooms.leave);
|
||||
|
||||
bool hasNotifications = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue