mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 06:07:06 +02:00
Suggest premiums in privacy.
This commit is contained in:
parent
87acc921c3
commit
d2164dc0d0
1 changed files with 5 additions and 0 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue