From 440237cdb9fb109069c626878f92bac7b0cd70a6 Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Sun, 16 Sep 2018 11:41:53 +0300 Subject: [PATCH] Clean up unread rooms after initial sync --- src/ChatPage.cpp | 2 ++ src/UserSettingsPage.cpp | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ChatPage.cpp b/src/ChatPage.cpp index 6640da0..53bed40 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(); diff --git a/src/UserSettingsPage.cpp b/src/UserSettingsPage.cpp index 655a850..94c2153 100644 --- a/src/UserSettingsPage.cpp +++ b/src/UserSettingsPage.cpp @@ -17,7 +17,6 @@ #include #include -#include #include #include #include @@ -516,8 +515,6 @@ UserSettingsPage::importSessionKeys() void UserSettingsPage::exportSessionKeys() { - qDebug() << "exporting session keys"; - // Open password dialog. bool ok; auto password = QInputDialog::getText(this,