2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Optimize emoji / stickers update requests.

This commit is contained in:
John Preston
2022-07-26 17:45:41 +03:00
parent 4f7aa15416
commit 4cf4b6a368
15 changed files with 96 additions and 59 deletions

View File

@@ -301,6 +301,7 @@ void StickerSetBox::prepare() {
object_ptr<Inner>(this, _controller, _set, _type),
st::stickersScroll);
_controller->session().data().stickers().updated(
_type
) | rpl::start_with_next([=] {
updateButtons();
}, lifetime());
@@ -369,7 +370,7 @@ void StickerSetBox::prepare() {
}
}
_controller->session().data().stickers().notifyUpdated();
_controller->session().data().stickers().notifyUpdated(type);
closeBox();
}, lifetime());
@@ -785,7 +786,7 @@ void StickerSetBox::Inner::installDone(
} else {
storage.writeInstalledStickers();
}
stickers.notifyUpdated();
stickers.notifyUpdated(type);
}
_setInstalled.fire_copy(_setId);
}