Added syncing of wallpaper with applied chat theme.

This commit is contained in:
23rd
2026-07-03 21:06:28 +03:00
committed by John Preston
parent 72a094f7e6
commit 1bb2fc183b
3 changed files with 44 additions and 0 deletions
@@ -1571,8 +1571,18 @@ SessionController::SessionController(
if (update.type == Theme::BackgroundUpdate::Type::New
|| update.type == Theme::BackgroundUpdate::Type::Changed) {
pushDefaultChatBackground();
} else if (update.type
== Theme::BackgroundUpdate::Type::ApplyingTheme) {
if (_isPrimary) {
Theme::CheckChatThemeWallPaper(this);
}
}
}, _lifetime);
if (_isPrimary) {
crl::on_main(base::make_weak(this), [=] {
Theme::CheckChatThemeWallPaper(this);
});
}
style::PaletteChanged(
) | rpl::on_next([=] {
for (auto &[key, value] : _customChatThemes) {