Drop message random_id from cache after the message is deleted.

GitOrigin-RevId: 75985135435dafa0c4de4e7fcafa25490a25d354
This commit is contained in:
levlam 2020-04-22 13:36:03 +03:00
parent 1c605b7e52
commit 80fb2baf6e

View File

@ -26981,6 +26981,10 @@ void MessagesManager::delete_message_from_database(Dialog *d, MessageId message_
return;
}
if (m->random_id != 0 && (m->is_outgoing || d->dialog_id == get_my_dialog_id())) {
message_random_ids_.erase(m->random_id);
}
if (m != nullptr && m->notification_id.is_valid()) {
CHECK(!message_id.is_scheduled());
auto from_mentions = is_from_mention_notification_group(d, m);