2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-04 08:25:38 +00:00

Cache reaction lottie in Window::SessionController.

This commit is contained in:
John Preston
2022-01-10 23:44:05 +03:00
parent 3b4ed03105
commit e032dbf383
6 changed files with 75 additions and 20 deletions

View File

@@ -20,6 +20,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "history/history.h"
#include "history/history_item.h"
#include "history/view/history_view_replies_section.h"
#include "history/view/history_view_react_button.h"
#include "history/view/history_view_reactions.h"
#include "media/player/media_player_instance.h"
#include "media/view/media_view_open_common.h"
@@ -530,7 +531,8 @@ SessionController::SessionController(
this))
, _invitePeekTimer([=] { checkInvitePeek(); })
, _defaultChatTheme(std::make_shared<Ui::ChatTheme>())
, _chatStyle(std::make_unique<Ui::ChatStyle>()) {
, _chatStyle(std::make_unique<Ui::ChatStyle>())
, _cachedReactionIconFactory(std::make_unique<ReactionIconFactory>()) {
init();
_chatStyleTheme = _defaultChatTheme;