mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
Clean up unread rooms after initial sync
This commit is contained in:
parent
1f3535bc43
commit
440237cdb9
2 changed files with 2 additions and 3 deletions
|
@ -1210,6 +1210,8 @@ ChatPage::initialSyncHandler(const mtx::responses::Sync &res, mtx::http::Request
|
||||||
|
|
||||||
emit initializeViews(std::move(res.rooms));
|
emit initializeViews(std::move(res.rooms));
|
||||||
emit initializeRoomList(cache::client()->roomInfo());
|
emit initializeRoomList(cache::client()->roomInfo());
|
||||||
|
|
||||||
|
cache::client()->calculateRoomReadStatus();
|
||||||
} catch (const lmdb::error &e) {
|
} catch (const lmdb::error &e) {
|
||||||
nhlog::db()->error("failed to save state after initial sync: {}", e.what());
|
nhlog::db()->error("failed to save state after initial sync: {}", e.what());
|
||||||
startInitialSync();
|
startInitialSync();
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
|
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <QComboBox>
|
#include <QComboBox>
|
||||||
#include <QDebug>
|
|
||||||
#include <QFileDialog>
|
#include <QFileDialog>
|
||||||
#include <QInputDialog>
|
#include <QInputDialog>
|
||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
|
@ -516,8 +515,6 @@ UserSettingsPage::importSessionKeys()
|
||||||
void
|
void
|
||||||
UserSettingsPage::exportSessionKeys()
|
UserSettingsPage::exportSessionKeys()
|
||||||
{
|
{
|
||||||
qDebug() << "exporting session keys";
|
|
||||||
|
|
||||||
// Open password dialog.
|
// Open password dialog.
|
||||||
bool ok;
|
bool ok;
|
||||||
auto password = QInputDialog::getText(this,
|
auto password = QInputDialog::getText(this,
|
||||||
|
|
Loading…
Reference in a new issue