Reload marks as unread if there is no message database.
This commit is contained in:
parent
e626b5f68f
commit
88ab425758
@ -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_message_count");
|
||||||
G()->td_db()->get_binlog_pmc()->erase_by_prefix("unread_dialog_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("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");
|
G()->td_db()->get_binlog_pmc()->erase("dialog_pinned_current_order");
|
||||||
|
|
||||||
|
@ -392,6 +392,7 @@ Status TdDb::init_sqlite(const Parameters ¶meters, const DbKey &key, const D
|
|||||||
binlog_pmc.erase_by_prefix("top_dialogs");
|
binlog_pmc.erase_by_prefix("top_dialogs");
|
||||||
binlog_pmc.erase("dlds_counter");
|
binlog_pmc.erase("dlds_counter");
|
||||||
binlog_pmc.erase_by_prefix("dlds#");
|
binlog_pmc.erase_by_prefix("dlds#");
|
||||||
|
binlog_pmc.erase("fetched_marks_as_unread");
|
||||||
}
|
}
|
||||||
if (user_version == 0) {
|
if (user_version == 0) {
|
||||||
binlog_pmc.erase("next_contacts_sync_date");
|
binlog_pmc.erase("next_contacts_sync_date");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user