mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-26 15:32:08 +00:00
Suggest premiums in privacy.
This commit is contained in:
@@ -407,6 +407,11 @@ EditPrivacyBox::EditPrivacyBox(
|
||||
: _window(window)
|
||||
, _controller(std::move(controller))
|
||||
, _value(value) {
|
||||
if (_controller->allowPremiumsToggle(Exception::Always)
|
||||
&& _value.option == Option::Everyone) {
|
||||
// If we switch from Everyone to Contacts or Nobody suggest Premiums.
|
||||
_value.always.premiums = true;
|
||||
}
|
||||
}
|
||||
|
||||
void EditPrivacyBox::prepare() {
|
||||
|
||||
Reference in New Issue
Block a user