summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-04-22 10:54:52 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-04-22 10:54:52 +0300
commit7a16e05b14c7dea173371228ebcfcabce7f5bada (patch)
tree3fef96ce482e6b0b2b234491bf6eec56a695f8c1 /src
parentImplement media cache (diff)
downloadnheko-7a16e05b14c7dea173371228ebcfcabce7f5bada.tar.xz
Initialize views before room list
Diffstat (limited to 'src')
-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(); });