From 91627605f62894ac6065e6aed853b8bbd8dc881e Mon Sep 17 00:00:00 2001 From: levlam Date: Sat, 12 Jan 2019 03:44:32 +0300 Subject: [PATCH] Remove secret chat notification on chat opening. GitOrigin-RevId: 4bd180b95b520bc1a9aca645d07580d5e3aa4228 --- td/telegram/MessagesManager.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index 6d5dc172..305b1487 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -12795,6 +12795,10 @@ void MessagesManager::open_dialog(Dialog *d) { LOG(INFO) << "Cancel unload timeout for " << d->dialog_id; pending_unload_dialog_timeout_.cancel_timeout(d->dialog_id.get()); + if (d->new_secret_chat_notification_id.is_valid()) { + remove_new_secret_chat_notification(d, true); + } + switch (d->dialog_id.get_type()) { case DialogType::User: break;