2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Unregister randomId if send message fails.

This commit is contained in:
John Preston
2019-09-09 11:13:41 +03:00
parent 3a3bf84cfc
commit 51c1dc20e1
5 changed files with 18 additions and 12 deletions

View File

@@ -403,6 +403,7 @@ void SendingAlbum::fillMedia(
const auto i = FindAlbumItem(items, item);
Assert(!i->media);
i->randomId = randomId;
i->media = PrepareAlbumItemMedia(item, media, randomId);
}