summary refs log tree commit diff
path: root/src/ChatPage.cpp
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-09-16 11:41:53 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-09-16 11:41:53 +0300
commit440237cdb9fb109069c626878f92bac7b0cd70a6 (patch)
treedf52479378ef3c3603e9574c9407cd81286cf4c0 /src/ChatPage.cpp
parentBump cache version due to incompatible changes (diff)
downloadnheko-440237cdb9fb109069c626878f92bac7b0cd70a6.tar.xz
Clean up unread rooms after initial sync
Diffstat (limited to 'src/ChatPage.cpp')
-rw-r--r--src/ChatPage.cpp2
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();