mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-06 20:03:12 +00:00
Added syncing of wallpaper with applied chat theme.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user