Fix CHECK.
This commit is contained in:
parent
1bbcc01091
commit
bee68243e8
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user