From 2f3540dadc7dcf27f81f4e103e8af7f4fd2bd05b Mon Sep 17 00:00:00 2001 From: John Preston Date: Sat, 10 Mar 2018 00:44:24 +0300 Subject: [PATCH] Fix sending an album after cancel of one media. --- Telegram/SourceFiles/apiwrap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/apiwrap.cpp b/Telegram/SourceFiles/apiwrap.cpp index 9669855a5..46a511e1e 100644 --- a/Telegram/SourceFiles/apiwrap.cpp +++ b/Telegram/SourceFiles/apiwrap.cpp @@ -3870,7 +3870,7 @@ void ApiWrap::sendAlbumWithCancelled( const MessageGroupId &groupId) { const auto localId = item->fullId(); const auto albumIt = _sendingAlbums.find(groupId.raw()); - if (albumIt != _sendingAlbums.end()) { + if (albumIt == _sendingAlbums.end()) { // Sometimes we destroy item being sent already after the album // was sent successfully. For example the message could be loaded // from server (by messages.getHistory or updateNewMessage) and