mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 22:46:10 +00:00
Fix crash with inline results sending.
This commit is contained in:
@@ -4028,13 +4028,17 @@ void ApiWrap::sendInlineResult(
|
|||||||
history->finishSavingCloudDraft(
|
history->finishSavingCloudDraft(
|
||||||
topicRootId,
|
topicRootId,
|
||||||
UnixtimeFromMsgId(response.outerMsgId));
|
UnixtimeFromMsgId(response.outerMsgId));
|
||||||
done(true);
|
if (done) {
|
||||||
|
done(true);
|
||||||
|
}
|
||||||
}, [=](const MTP::Error &error, const MTP::Response &response) {
|
}, [=](const MTP::Error &error, const MTP::Response &response) {
|
||||||
sendMessageFail(error, peer, randomId, newId);
|
sendMessageFail(error, peer, randomId, newId);
|
||||||
history->finishSavingCloudDraft(
|
history->finishSavingCloudDraft(
|
||||||
topicRootId,
|
topicRootId,
|
||||||
UnixtimeFromMsgId(response.outerMsgId));
|
UnixtimeFromMsgId(response.outerMsgId));
|
||||||
done(false);
|
if (done) {
|
||||||
|
done(false);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
finishForwarding(action);
|
finishForwarding(action);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user