2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-18 13:59:46 +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

@@ -52,6 +52,10 @@ mtpRequestId EditMessage(
ConvertOption::SkipLocal);
const auto media = item->media();
const auto updateRecentStickers = inputMedia.has_value()
? Api::HasAttachedStickers(*inputMedia)
: false;
const auto emptyFlag = MTPmessages_EditMessage::Flag(0);
const auto flags = emptyFlag
| (!text.isEmpty() || media
@@ -97,6 +101,10 @@ mtpRequestId EditMessage(
} else {
apply();
}
if (updateRecentStickers) {
api->requestRecentStickersForce(true);
}
}).fail(
fail
).send();