mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
@@ -103,10 +103,10 @@ void GlobalPrivacy::update(
|
||||
| (archiveAndMute
|
||||
? Flag::f_archive_and_mute_new_noncontact_peers
|
||||
: Flag())
|
||||
| (unarchiveOnNewMessage == UnarchiveOnNewMessage::AnyUnmuted
|
||||
| (unarchiveOnNewMessage == UnarchiveOnNewMessage::None
|
||||
? Flag::f_keep_archived_unmuted
|
||||
: Flag())
|
||||
| (unarchiveOnNewMessage != UnarchiveOnNewMessage::None
|
||||
| (unarchiveOnNewMessage != UnarchiveOnNewMessage::AnyUnmuted
|
||||
? Flag::f_keep_archived_folders
|
||||
: Flag());
|
||||
_requestId = _api.request(MTPaccount_SetGlobalPrivacySettings(
|
||||
@@ -125,10 +125,10 @@ void GlobalPrivacy::apply(const MTPGlobalPrivacySettings &data) {
|
||||
data.match([&](const MTPDglobalPrivacySettings &data) {
|
||||
_archiveAndMute = data.is_archive_and_mute_new_noncontact_peers();
|
||||
_unarchiveOnNewMessage = data.is_keep_archived_unmuted()
|
||||
? UnarchiveOnNewMessage::AnyUnmuted
|
||||
? UnarchiveOnNewMessage::None
|
||||
: data.is_keep_archived_folders()
|
||||
? UnarchiveOnNewMessage::NotInFoldersUnmuted
|
||||
: UnarchiveOnNewMessage::None;
|
||||
: UnarchiveOnNewMessage::AnyUnmuted;
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user