Clean up unread rooms after initial sync

remotes/origin/HEAD
Konstantinos Sideris 6 years ago
parent 1f3535bc43
commit 440237cdb9
  1. 2
      src/ChatPage.cpp
  2. 3
      src/UserSettingsPage.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();

@ -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,

Loading…
Cancel
Save