Fix sending an album after cancel of one media.

This commit is contained in:
John Preston 2018-03-10 00:44:24 +03:00
parent eb00641dfa
commit 2f3540dadc

View file

@ -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