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

Add bio privacy section.

This commit is contained in:
John Preston
2023-05-30 18:41:02 +04:00
parent 8b22f9dcac
commit e90642f3a0
4 changed files with 66 additions and 0 deletions

View File

@@ -310,6 +310,11 @@ void SetupPrivacy(
{ &st::settingsPremiumIconVoice, kIconRed },
Key::Voices,
[=] { return std::make_unique<VoicesPrivacyController>(session); });
add(
tr::lng_settings_bio_privacy(),
{ &st::settingsIconAccount, kIconDarkOrange },
Key::About,
[] { return std::make_unique<AboutPrivacyController>(); });
session->api().userPrivacy().reload(Api::UserPrivacy::Key::AddedByPhone);