Fix CHECK.

This commit is contained in:
levlam 2021-04-03 02:19:30 +03:00
parent 1bbcc01091
commit bee68243e8

View File

@ -10970,7 +10970,11 @@ void MessagesManager::unload_dialog(DialogId dialog_id) {
Dialog *d = get_dialog(dialog_id);
CHECK(d != nullptr);
CHECK(d->has_unload_timeout);
if (!d->has_unload_timeout) {
// possible right after the dialog was opened
return;
}
if (!is_message_unload_enabled()) {
// just in case