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

Try to request dependent messages on demand.

This commit is contained in:
John Preston
2024-01-18 19:25:51 +04:00
parent a38f731265
commit ce6fc19b84
7 changed files with 91 additions and 38 deletions

View File

@@ -302,7 +302,6 @@ void SetupPrivacy(
tr::lng_settings_profile_photo_privacy(),
Key::ProfilePhoto,
[] { return std::make_unique<ProfilePhotoPrivacyController>(); });
AddMessagesPrivacyButton(controller, container);
add(
tr::lng_settings_bio_privacy(),
Key::About,
@@ -326,6 +325,7 @@ void SetupPrivacy(
tr::lng_settings_voices_privacy(),
Key::Voices,
[=] { return std::make_unique<VoicesPrivacyController>(session); });
AddMessagesPrivacyButton(controller, container);
session->api().userPrivacy().reload(Api::UserPrivacy::Key::AddedByPhone);