2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Fixed update of recently attached stickers after sending.

This commit is contained in:
23rd
2021-03-31 00:00:48 +03:00
parent de108c8efe
commit 7cd6b821b3
5 changed files with 28 additions and 1 deletions

View File

@@ -4521,6 +4521,8 @@ void ApiWrap::sendMediaWithRandomId(
caption.entities,
Api::ConvertOption::SkipLocal);
const auto updateRecentStickers = Api::HasAttachedStickers(media);
const auto flags = MTPmessages_SendMedia::Flags(0)
| (replyTo
? MTPmessages_SendMedia::Flag::f_reply_to_msg_id
@@ -4553,6 +4555,10 @@ void ApiWrap::sendMediaWithRandomId(
)).done([=](const MTPUpdates &result) {
applyUpdates(result);
finish();
if (updateRecentStickers) {
requestRecentStickersForce(true);
}
}).fail([=](const MTP::Error &error) {
sendMessageFail(error, peer, randomId, itemId);
finish();