Fix stickers list display after account switch.

This commit is contained in:
John Preston 2020-07-06 16:26:43 +04:00
parent 52e780b065
commit f316d951ae
2 changed files with 3 additions and 0 deletions

View file

@ -369,6 +369,7 @@ TabbedSelector::TabbedSelector(
) | rpl::start_with_next([=] {
refreshStickers();
}, lifetime());
refreshStickers();
}
//setAttribute(Qt::WA_AcceptTouchEvents);
setAttribute(Qt::WA_OpaquePaintEvent, false);

View file

@ -135,6 +135,8 @@ Session::Session(
saveSettingsDelayed();
}
// Storage::Account uses Main::Account::session() in those methods.
// So they can't be called during Main::Session construction.
local().readInstalledStickers();
local().readFeaturedStickers();
local().readRecentStickers();