mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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)
|
: _window(window)
|
||||||
, _controller(std::move(controller))
|
, _controller(std::move(controller))
|
||||||
, _value(value) {
|
, _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() {
|
void EditPrivacyBox::prepare() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue