diff --git a/Telegram/SourceFiles/window/themes/window_theme.cpp b/Telegram/SourceFiles/window/themes/window_theme.cpp index b3940bd825..77b9165a5c 100644 --- a/Telegram/SourceFiles/window/themes/window_theme.cpp +++ b/Telegram/SourceFiles/window/themes/window_theme.cpp @@ -521,13 +521,6 @@ ChatBackground::ChatBackground() : _adjustableColors({ st::historyScrollBgOver, st::historyScrollBarBg, st::historyScrollBarBgOver }) { - saveAdjustableColors(); - - subscribe(this, [=](const BackgroundUpdate &update) { - if (update.paletteChanged()) { - style::NotifyPaletteChanged(); - } - }); } void ChatBackground::setThemeData(QImage &&themeImage, bool themeTile) { @@ -550,6 +543,14 @@ void ChatBackground::initialRead() { } void ChatBackground::start() { + saveAdjustableColors(); + + subscribe(this, [=](const BackgroundUpdate &update) { + if (update.paletteChanged()) { + style::NotifyPaletteChanged(); + } + }); + initialRead(); Core::App().domain().activeSessionValue(