2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 08:55:59 +00:00

Support "premiums and ..." privacy editing.

This commit is contained in:
John Preston
2024-04-01 17:03:04 +04:00
parent 1e6fb202f0
commit 5741bd9cca
14 changed files with 328 additions and 55 deletions

View File

@@ -795,6 +795,11 @@ auto GroupsInvitePrivacyController::exceptionsDescription() const
return tr::lng_edit_privacy_groups_exceptions();
}
bool GroupsInvitePrivacyController::allowPremiumsToggle(
Exception exception) const {
return (exception == Exception::Always);
}
UserPrivacy::Key CallsPrivacyController::key() const {
return Key::Calls;
}