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 | |
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')
-rw-r--r-- | src/ChatPage.cpp | 2 | ||||
-rw-r--r-- | src/UserSettingsPage.cpp | 3 |
2 files changed, 2 insertions, 3 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(); diff --git a/src/UserSettingsPage.cpp b/src/UserSettingsPage.cpp index 655a8509..94c21538 100644 --- a/src/UserSettingsPage.cpp +++ b/src/UserSettingsPage.cpp @@ -17,7 +17,6 @@ #include <QApplication> #include <QComboBox> -#include <QDebug> #include <QFileDialog> #include <QInputDialog> #include <QLabel> @@ -516,8 +515,6 @@ UserSettingsPage::importSessionKeys() void UserSettingsPage::exportSessionKeys() { - qDebug() << "exporting session keys"; - // Open password dialog. bool ok; auto password = QInputDialog::getText(this, |