From 787e37000207ddf649b0a14b155773d853c0bdf6 Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 28 Aug 2019 03:39:47 +0300 Subject: [PATCH] Do not create empty PendingMessageGroupSend to not try to use it in on_upload_message_media_finished. GitOrigin-RevId: 5210a6072b566d270ec1f3b65183d153adf47ea6 --- td/telegram/MessagesManager.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index 6e449d23..71edfbdc 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -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; }