Add more logging in unload_dialog.
This commit is contained in:
parent
4e27f67cd0
commit
562af8b4f6
@ -10863,12 +10863,14 @@ void MessagesManager::unload_dialog(DialogId dialog_id) {
|
|||||||
CHECK(d != nullptr);
|
CHECK(d != nullptr);
|
||||||
|
|
||||||
if (!d->has_unload_timeout) {
|
if (!d->has_unload_timeout) {
|
||||||
|
LOG(INFO) << "Don't need to unload " << dialog_id;
|
||||||
// possible right after the dialog was opened
|
// possible right after the dialog was opened
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!is_message_unload_enabled()) {
|
if (!is_message_unload_enabled()) {
|
||||||
// just in case
|
// just in case
|
||||||
|
LOG(INFO) << "Message unload is disabled in " << dialog_id;
|
||||||
d->has_unload_timeout = false;
|
d->has_unload_timeout = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user