mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 22:16:14 +00:00
Support thumb_document_id in emoji sets.
This commit is contained in:
@@ -2659,17 +2659,17 @@ void ApiWrap::requestCustomEmoji(TimeId now) {
|
||||
return;
|
||||
}
|
||||
const auto done = [=](const MTPmessages_AllStickers &result) {
|
||||
_session->data().stickers().setLastMasksUpdate(crl::now());
|
||||
_masksUpdateRequest = 0;
|
||||
_session->data().stickers().setLastEmojiUpdate(crl::now());
|
||||
_customEmojiUpdateRequest = 0;
|
||||
|
||||
result.match([&](const MTPDmessages_allStickersNotModified&) {
|
||||
}, [&](const MTPDmessages_allStickers &data) {
|
||||
_session->data().stickers().masksReceived(
|
||||
_session->data().stickers().emojiReceived(
|
||||
data.vsets().v,
|
||||
data.vhash().v);
|
||||
});
|
||||
};
|
||||
_masksUpdateRequest = request(MTPmessages_GetEmojiStickers(
|
||||
_customEmojiUpdateRequest = request(MTPmessages_GetEmojiStickers(
|
||||
MTP_long(Api::CountCustomEmojiHash(_session, true))
|
||||
)).done(done).fail([=] {
|
||||
LOG(("App Fail: Failed to get custom emoji!"));
|
||||
|
Reference in New Issue
Block a user