From fc130aec51da5adc15199a2f2a1d90eb8a434a81 Mon Sep 17 00:00:00 2001 From: levlam Date: Sun, 15 Dec 2019 23:38:32 +0300 Subject: [PATCH] Skip action bar repair on close. GitOrigin-RevId: 3fa1fdc3d0664a2fb6d80f1010b2a5c20382253c --- td/telegram/MessagesManager.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index 2b4bedb9..8584740c 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -6748,6 +6748,10 @@ bool MessagesManager::update_dialog_silent_send_message(Dialog *d, bool silent_s } void MessagesManager::repair_dialog_action_bar(DialogId dialog_id) { + if (G()->close_flag()) { + return; + } + switch (dialog_id.get_type()) { case DialogType::User: td_->contacts_manager_->reload_user_full(dialog_id.get_user_id());