Fix possible crash.
GitOrigin-RevId: 33fdfa3f92b9dfe393aac934f1307be00d7c308b
This commit is contained in:
parent
a6ec9e784a
commit
3d85a7f304
@ -18190,7 +18190,8 @@ void MessagesManager::cancel_send_message_query(DialogId dialog_id, Message *m)
|
||||
if (queue.empty()) {
|
||||
yet_unsent_media_queues_.erase(queue_it);
|
||||
} else {
|
||||
on_yet_unsent_media_queue_updated(dialog_id);
|
||||
// send later, because do_delete_all_dialog_messages can be called right now
|
||||
send_closure_later(actor_id(this), &MessagesManager::on_yet_unsent_media_queue_updated, dialog_id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user