2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +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

@@ -135,11 +135,11 @@ void SendExistingMedia(
if (media->fileReference() != usedFileReference) {
performRequest();
} else {
api->sendMessageFail(error, peer, newId);
api->sendMessageFail(error, peer, randomId, newId);
}
});
} else {
api->sendMessageFail(error, peer, newId);
api->sendMessageFail(error, peer, randomId, newId);
}
};
performRequest();