Skip to content

Commit

Permalink
Add more logging in unload_dialog.
Browse files Browse the repository at this point in the history
  • Loading branch information
levlam committed Jul 22, 2021
1 parent 4e27f67 commit 562af8b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions td/telegram/MessagesManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10863,12 +10863,14 @@ void MessagesManager::unload_dialog(DialogId dialog_id) {
CHECK(d != nullptr);

if (!d->has_unload_timeout) {
LOG(INFO) << "Don't need to unload " << dialog_id;
// possible right after the dialog was opened
return;
}

if (!is_message_unload_enabled()) {
// just in case
LOG(INFO) << "Message unload is disabled in " << dialog_id;
d->has_unload_timeout = false;
return;
}
Expand Down

0 comments on commit 562af8b

Please sign in to comment.