Fix wrong calls to remove_notification.
GitOrigin-RevId: 3e752924af1511d9fd8f721fde93aa90e7f96123
This commit is contained in:
parent
ca4fe0ecb3
commit
ee2d557531
@ -21575,10 +21575,12 @@ void MessagesManager::delete_message_from_database(Dialog *d, MessageId message_
|
||||
// last notification is deleted, need to find new last notification
|
||||
fix_dialog_last_notification_id(d, from_mentions, m->message_id);
|
||||
}
|
||||
if (is_message_notification_active(d, m)) {
|
||||
send_closure_later(G()->notification_manager(), &NotificationManager::remove_notification, group_info.group_id,
|
||||
m->notification_id, true, Promise<Unit>());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
auto is_secret = d->dialog_id.get_type() == DialogType::SecretChat;
|
||||
if (m != nullptr && m->ttl > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user