fix: .value() -> .changes()

.value() emits current value, triggering a lot of updates e.g. on history opening
This commit is contained in:
AlexeyZavar
2026-03-07 21:53:39 +03:00
parent 5b9ab96b19
commit 1d7c45b324
11 changed files with 202 additions and 110 deletions
@@ -541,7 +541,7 @@ auto ChatThemeValueFromPeer(
-> rpl::producer<std::shared_ptr<Ui::ChatTheme>> {
auto cloud = rpl::combine(
MaybeCloudThemeValueFromPeer(peer),
AyuSettings::getInstance().disableCustomBackgroundsChanges()
AyuSettings::getInstance().disableCustomBackgroundsValue()
) | rpl::map([=](ResolvedTheme resolved, bool disableCustomBackgrounds)
-> rpl::producer<std::shared_ptr<Ui::ChatTheme>> {
// this check ensures that background is not a pattern wallpaper in a private chat