From 91f79a41e73150035b6ab26497c55222ac69604c Mon Sep 17 00:00:00 2001 From: levlam Date: Sun, 3 May 2020 15:23:28 +0300 Subject: [PATCH] Fix removing sponsored dialog. GitOrigin-RevId: d782395e217b44b0f9aa46d748fabd8aa3b24acd --- td/telegram/MessagesManager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index 3bbc5053..a6453e1f 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -30746,7 +30746,8 @@ void MessagesManager::set_sponsored_dialog(DialogId dialog_id, DialogSource sour if (td_->auth_manager_->is_bot()) { return; } - if (dialog_id == removed_sponsored_dialog_id_) { + LOG(INFO) << "Change sponsored chat from " << sponsored_dialog_id_ << " to " << dialog_id; + if (removed_sponsored_dialog_id_.is_valid() && dialog_id == removed_sponsored_dialog_id_) { return; }