diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-04-22 10:54:52 +0300 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-04-22 10:54:52 +0300 |
commit | 7a16e05b14c7dea173371228ebcfcabce7f5bada (patch) | |
tree | 3fef96ce482e6b0b2b234491bf6eec56a695f8c1 /src/ChatPage.cc | |
parent | Implement media cache (diff) | |
download | nheko-7a16e05b14c7dea173371228ebcfcabce7f5bada.tar.xz |
Initialize views before room list
Diffstat (limited to 'src/ChatPage.cc')
-rw-r--r-- | src/ChatPage.cc | 2 |
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(); }); |