diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-09-16 11:41:53 +0300 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-09-16 11:41:53 +0300 |
commit | 440237cdb9fb109069c626878f92bac7b0cd70a6 (patch) | |
tree | df52479378ef3c3603e9574c9407cd81286cf4c0 /src/ChatPage.cpp | |
parent | Bump cache version due to incompatible changes (diff) | |
download | nheko-440237cdb9fb109069c626878f92bac7b0cd70a6.tar.xz |
Clean up unread rooms after initial sync
Diffstat (limited to 'src/ChatPage.cpp')
-rw-r--r-- | src/ChatPage.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ChatPage.cpp b/src/ChatPage.cpp index 6640da09..53bed40f 100644 --- a/src/ChatPage.cpp +++ b/src/ChatPage.cpp @@ -1210,6 +1210,8 @@ ChatPage::initialSyncHandler(const mtx::responses::Sync &res, mtx::http::Request emit initializeViews(std::move(res.rooms)); emit initializeRoomList(cache::client()->roomInfo()); + + cache::client()->calculateRoomReadStatus(); } catch (const lmdb::error &e) { nhlog::db()->error("failed to save state after initial sync: {}", e.what()); startInitialSync(); |