Clean up unread rooms after initial sync

This commit is contained in:
Konstantinos Sideris 2018-09-16 11:41:53 +03:00
parent 1f3535bc43
commit 440237cdb9
2 changed files with 2 additions and 3 deletions

View file

@ -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();