2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Track birthdays, edit birthday privacy.

This commit is contained in:
John Preston
2024-03-22 12:41:28 +04:00
parent 5e68dace9f
commit 59663d6661
15 changed files with 293 additions and 24 deletions

View File

@@ -135,6 +135,8 @@ QString PrivacyBase(Privacy::Key key, Privacy::Option option) {
case Option::Contacts: return tr::lng_edit_privacy_contacts(tr::now);
case Option::CloseFriends:
return tr::lng_edit_privacy_close_friends(tr::now);
case Option::ContactsAndPremium:
return tr::lng_edit_privacy_contacts_and_premium(tr::now);
case Option::Nobody: return tr::lng_edit_privacy_nobody(tr::now);
}
Unexpected("Value in Privacy::Option.");
@@ -355,6 +357,10 @@ void SetupPrivacy(
tr::lng_settings_bio_privacy(),
Key::About,
[] { return std::make_unique<AboutPrivacyController>(); });
add(
tr::lng_settings_birthday_privacy(),
Key::Birthday,
[] { return std::make_unique<BirthdayPrivacyController>(); });
add(
tr::lng_settings_forwards_privacy(),
Key::Forwards,