Reload marks as unread if there is no message database.

This commit is contained in:
levlam 2023-05-15 18:20:24 +03:00
parent e626b5f68f
commit 88ab425758
2 changed files with 2 additions and 0 deletions

View File

@ -13793,6 +13793,7 @@ void MessagesManager::init() {
G()->td_db()->get_binlog_pmc()->erase_by_prefix("unread_message_count");
G()->td_db()->get_binlog_pmc()->erase_by_prefix("unread_dialog_count");
G()->td_db()->get_binlog_pmc()->erase("sponsored_dialog_id");
G()->td_db()->get_binlog_pmc()->erase("fetched_marks_as_unread");
}
G()->td_db()->get_binlog_pmc()->erase("dialog_pinned_current_order");

View File

@ -392,6 +392,7 @@ Status TdDb::init_sqlite(const Parameters &parameters, const DbKey &key, const D
binlog_pmc.erase_by_prefix("top_dialogs");
binlog_pmc.erase("dlds_counter");
binlog_pmc.erase_by_prefix("dlds#");
binlog_pmc.erase("fetched_marks_as_unread");
}
if (user_version == 0) {
binlog_pmc.erase("next_contacts_sync_date");