Do not create empty PendingMessageGroupSend to not try to use it in on_upload_message_media_finished.

GitOrigin-RevId: 5210a6072b566d270ec1f3b65183d153adf47ea6
This commit is contained in:
levlam 2019-08-28 03:39:47 +03:00
parent 607f99e40d
commit 787e370002

View File

@ -16343,7 +16343,6 @@ int64 MessagesManager::generate_new_media_album_id() {
do {
media_album_id = Random::secure_int64();
} while (media_album_id >= 0 || pending_message_group_sends_.count(media_album_id) != 0);
pending_message_group_sends_[media_album_id]; // reserve place for the group
return media_album_id;
}