summary refs log tree commit diff
path: root/src/ChatPage.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/ChatPage.cc')
-rw-r--r--src/ChatPage.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ChatPage.cc b/src/ChatPage.cc
index 280ae399..ff59471f 100644
--- a/src/ChatPage.cc
+++ b/src/ChatPage.cc
@@ -550,6 +550,7 @@ ChatPage::initialSyncCompleted(const mtx::responses::Sync &response)
         QtConcurrent::run([this, res = std::move(response)]() {
                 try {
                         cache_->saveState(res);
+                        emit initializeViews(std::move(res.rooms));
                         emit initializeRoomList(cache_->roomInfo());
                 } catch (const lmdb::error &e) {
                         qWarning() << "cache error:" << QString::fromStdString(e.what());
@@ -557,7 +558,6 @@ ChatPage::initialSyncCompleted(const mtx::responses::Sync &response)
                         return;
                 }
 
-                emit initializeViews(std::move(res.rooms));
                 emit continueSync(cache_->nextBatchToken());
                 emit contentLoaded();
         });