diff --git a/td/telegram/GlobalPrivacySettings.cpp b/td/telegram/GlobalPrivacySettings.cpp index 7848602cc..7213696bd 100644 --- a/td/telegram/GlobalPrivacySettings.cpp +++ b/td/telegram/GlobalPrivacySettings.cpp @@ -74,7 +74,9 @@ class SetGlobalPrivacySettingsQuery final : public Td::ResultHandler { GlobalPrivacySettings::GlobalPrivacySettings(telegram_api::object_ptr &&settings) : archive_and_mute_new_noncontact_peers_(settings->archive_and_mute_new_noncontact_peers_) , keep_archived_unmuted_(settings->keep_archived_unmuted_) - , keep_archived_folders_(settings->keep_archived_folders_) { + , keep_archived_folders_(settings->keep_archived_folders_) + , hide_read_marks_(settings->hide_read_marks_) + , new_noncontact_peers_require_premium_(settings->new_noncontact_peers_require_premium_) { } GlobalPrivacySettings::GlobalPrivacySettings(td_api::object_ptr &&settings) @@ -113,6 +115,12 @@ telegram_api::object_ptr GlobalPrivacySetti if (keep_archived_folders_) { flags |= telegram_api::globalPrivacySettings::KEEP_ARCHIVED_FOLDERS_MASK; } + if (hide_read_marks_) { + flags |= telegram_api::globalPrivacySettings::HIDE_READ_MARKS_MASK; + } + if (new_noncontact_peers_require_premium_) { + flags |= telegram_api::globalPrivacySettings::NEW_NONCONTACT_PEERS_REQUIRE_PREMIUM_MASK; + } return telegram_api::make_object( flags, false /*ignored*/, false /*ignored*/, false /*ignored*/, false /*ignored*/, false /*ignored*/); } diff --git a/td/telegram/GlobalPrivacySettings.h b/td/telegram/GlobalPrivacySettings.h index 70af9674c..faba02b8e 100644 --- a/td/telegram/GlobalPrivacySettings.h +++ b/td/telegram/GlobalPrivacySettings.h @@ -22,6 +22,8 @@ class GlobalPrivacySettings { bool archive_and_mute_new_noncontact_peers_ = false; bool keep_archived_unmuted_ = false; bool keep_archived_folders_ = false; + bool hide_read_marks_ = false; + bool new_noncontact_peers_require_premium_ = false; void apply_changes(const GlobalPrivacySettings &set_settings);