2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +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

@@ -399,7 +399,9 @@ TabbedSelector::TabbedSelector(
rpl::merge(
session().premiumPossibleValue() | rpl::to_empty,
session().data().stickers().updated()
session().data().stickers().updated(hasMasksTab()
? Data::StickersType::Masks
: Data::StickersType::Stickers)
) | rpl::start_with_next([=] {
refreshStickers();
}, lifetime());