Don't try to load recent chats from database right after the database was deleted.
This commit is contained in:
parent
246f2ca42f
commit
606ee063d5
@ -106,7 +106,7 @@ void RecentDialogList::load_dialogs(Promise<Unit> &&promise) {
|
||||
}
|
||||
}
|
||||
if (!dialog_ids.empty()) {
|
||||
if (G()->use_chat_info_database()) {
|
||||
if (G()->use_chat_info_database() && !G()->td_db()->was_dialog_db_created()) {
|
||||
td_->messages_manager_->load_dialogs(
|
||||
std::move(dialog_ids),
|
||||
PromiseCreator::lambda(
|
||||
|
Loading…
Reference in New Issue
Block a user