diff --git a/Telegram/SourceFiles/settings/settings_privacy_security.cpp b/Telegram/SourceFiles/settings/settings_privacy_security.cpp index 907a324e1..f6a318013 100644 --- a/Telegram/SourceFiles/settings/settings_privacy_security.cpp +++ b/Telegram/SourceFiles/settings/settings_privacy_security.cpp @@ -26,6 +26,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include "boxes/self_destruction_box.h" #include "core/application.h" #include "core/core_settings.h" +#include "ui/chat/chat_style.h" #include "ui/wrap/vertical_layout.h" #include "ui/wrap/slide_wrap.h" #include "ui/wrap/fade_wrap.h" diff --git a/Telegram/SourceFiles/ui/chat/chat_theme.h b/Telegram/SourceFiles/ui/chat/chat_theme.h index dabf7d457..d27d0574e 100644 --- a/Telegram/SourceFiles/ui/chat/chat_theme.h +++ b/Telegram/SourceFiles/ui/chat/chat_theme.h @@ -156,7 +156,6 @@ private: Animations::Simple _backgroundFade; CacheBackgroundRequest _backgroundCachingRequest; CacheBackgroundResult _backgroundNext; - int _backgroundAddRotation = 0; QSize _willCacheForArea; crl::time _lastAreaChangeTime = 0; std::optional _cacheBackgroundTimer; diff --git a/Telegram/SourceFiles/window/window_session_controller.cpp b/Telegram/SourceFiles/window/window_session_controller.cpp index 3367e1a9a..5a193c5cc 100644 --- a/Telegram/SourceFiles/window/window_session_controller.cpp +++ b/Telegram/SourceFiles/window/window_session_controller.cpp @@ -1432,7 +1432,7 @@ void SessionController::cacheChatTheme(const Data::CloudTheme &data) { this, descriptor = std::move(descriptor), weak = base::make_weak(this) - ]{ + ]() mutable { crl::on_main(weak,[ this, result = std::make_shared(std::move(descriptor))