Fix wrong calls to remove_notification.
GitOrigin-RevId: 3e752924af1511d9fd8f721fde93aa90e7f96123
This commit is contained in:
parent
ca4fe0ecb3
commit
ee2d557531
@ -21575,8 +21575,10 @@ 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);
|
||||
}
|
||||
send_closure_later(G()->notification_manager(), &NotificationManager::remove_notification, group_info.group_id,
|
||||
m->notification_id, true, Promise<Unit>());
|
||||
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>());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user