mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Optimize emoji / stickers update requests.
This commit is contained in:
@@ -619,9 +619,10 @@ void StickersBox::prepare() {
|
||||
setDimensions(st::boxWideWidth, st::boxMaxListHeight);
|
||||
|
||||
session().data().stickers().updated(
|
||||
) | rpl::start_with_next(
|
||||
[this] { handleStickersUpdated(); },
|
||||
lifetime());
|
||||
_isMasks ? Data::StickersType::Masks : Data::StickersType::Stickers
|
||||
) | rpl::start_with_next([=] {
|
||||
handleStickersUpdated();
|
||||
}, lifetime());
|
||||
session().api().updateStickers();
|
||||
session().api().updateMasks();
|
||||
|
||||
@@ -871,7 +872,8 @@ void StickersBox::installSet(uint64 setId) {
|
||||
}
|
||||
}
|
||||
|
||||
void StickersBox::installDone(const MTPmessages_StickerSetInstallResult &result) {
|
||||
void StickersBox::installDone(
|
||||
const MTPmessages_StickerSetInstallResult &result) {
|
||||
if (result.type() == mtpc_messages_stickerSetInstallResultArchive) {
|
||||
session().data().stickers().applyArchivedResult(
|
||||
result.c_messages_stickerSetInstallResultArchive());
|
||||
|
||||
Reference in New Issue
Block a user