Fix removing sponsored dialog.

GitOrigin-RevId: d782395e217b44b0f9aa46d748fabd8aa3b24acd
This commit is contained in:
levlam 2020-05-03 15:23:28 +03:00
parent 68ccc65bb4
commit 91f79a41e7

View File

@ -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;
}