diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-03-04 15:39:41 +0200 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-03-04 15:39:41 +0200 |
commit | af02b4f4a89a2f1bef5d2a6f90f0e2fbf6e82e73 (patch) | |
tree | 09ed4ae49e372642202fb0438566e14901380139 /src/ChatPage.cc | |
parent | Don't handle password when the matrix id is entered (diff) | |
download | nheko-af02b4f4a89a2f1bef5d2a6f90f0e2fbf6e82e73.tar.xz |
Show messages in the RoomList after initial sync
Diffstat (limited to 'src/ChatPage.cc')
-rw-r--r-- | src/ChatPage.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ChatPage.cc b/src/ChatPage.cc index 571ac67a..fee4f982 100644 --- a/src/ChatPage.cc +++ b/src/ChatPage.cc @@ -544,7 +544,7 @@ ChatPage::initialSyncCompleted(const mtx::responses::Sync &response) roomStates_); QtConcurrent::run(cache_.data(), &Cache::setInvites, response.rooms.invite); - // Populate timelines with messages. + // Create timelines view_manager_->initialize(response.rooms); // Initialize room list. @@ -554,6 +554,9 @@ ChatPage::initialSyncCompleted(const mtx::responses::Sync &response) client_->setNextBatchToken(QString::fromStdString(response.next_batch)); client_->sync(); + // Add messages + view_manager_->sync(response.rooms); + emit contentLoaded(); } |