mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
fix: .value() -> .changes()
.value() emits current value, triggering a lot of updates e.g. on history opening
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user