mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
chore: refactor settings
This commit is contained in:
@@ -482,9 +482,9 @@ auto ChatThemeValueFromPeer(
|
||||
peer
|
||||
) | rpl::map([=](ResolvedTheme resolved)
|
||||
-> rpl::producer<std::shared_ptr<Ui::ChatTheme>> {
|
||||
const auto settings = &AyuSettings::getInstance();
|
||||
const auto& settings = AyuSettings::getInstance();
|
||||
// this check ensures that background is not a pattern wallpaper in a private chat
|
||||
if (settings->disableCustomBackgrounds && resolved.paper && resolved.paper->media) {
|
||||
if (settings.disableCustomBackgrounds && resolved.paper && resolved.paper->media) {
|
||||
resolved.paper = std::nullopt;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user