mirror of https://github.com/procxx/kepka.git
Added preload of stickers in touchbar.
This commit is contained in:
parent
8de3826c9e
commit
d57b8d2ec7
|
@ -895,6 +895,9 @@ void AppendEmojiPacks(std::vector<PickerScrubberItem> &to) {
|
||||||
Auth().data().chatsListChanges(
|
Auth().data().chatsListChanges(
|
||||||
) | rpl::start_with_next([=] {
|
) | rpl::start_with_next([=] {
|
||||||
if (const auto window = App::wnd()) {
|
if (const auto window = App::wnd()) {
|
||||||
|
if (!Auth().data().stickerSets().size()) {
|
||||||
|
Auth().api().updateStickers();
|
||||||
|
}
|
||||||
if (const auto controller = window->sessionController()) {
|
if (const auto controller = window->sessionController()) {
|
||||||
_lifetimeSessionControllerChecker.destroy();
|
_lifetimeSessionControllerChecker.destroy();
|
||||||
controller->activeChatChanges(
|
controller->activeChatChanges(
|
||||||
|
|
Loading…
Reference in New Issue