From d57b8d2ec7fd7ef0cb4557f0effa80187c9d4827 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Sat, 22 Jun 2019 14:12:10 +0300 Subject: [PATCH] Added preload of stickers in touchbar. --- Telegram/SourceFiles/platform/mac/mac_touchbar.mm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Telegram/SourceFiles/platform/mac/mac_touchbar.mm b/Telegram/SourceFiles/platform/mac/mac_touchbar.mm index 3a35a4348..765420f53 100644 --- a/Telegram/SourceFiles/platform/mac/mac_touchbar.mm +++ b/Telegram/SourceFiles/platform/mac/mac_touchbar.mm @@ -895,6 +895,9 @@ void AppendEmojiPacks(std::vector &to) { Auth().data().chatsListChanges( ) | rpl::start_with_next([=] { if (const auto window = App::wnd()) { + if (!Auth().data().stickerSets().size()) { + Auth().api().updateStickers(); + } if (const auto controller = window->sessionController()) { _lifetimeSessionControllerChecker.destroy(); controller->activeChatChanges(