bugfix: incorrect erase element

This commit is contained in:
Кипорский Алексей 2020-03-20 10:02:36 +05:00 committed by John Preston
parent d2291f5b17
commit ea854e5be3
1 changed files with 3 additions and 2 deletions

View File

@ -2007,9 +2007,10 @@ void SessionPrivate::requestsAcked(const QVector<MTPlong> &ids, bool byResponse)
} else {
DEBUG_LOG(("Message Info: acked msgId %1 that was prepared to resend, requestId %2").arg(msgId).arg(requestId));
}
toSend.erase(j);
_ackedIds.emplace(msgId, j->second->requestId);
toSend.erase(j);
continue;
}
DEBUG_LOG(("Message Info: msgId %1 was not found in recent resent either").arg(msgId));