mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix crash with inline results sending.
This commit is contained in:
parent
fa8262cbe9
commit
42a70ff7d0
1 changed files with 6 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue