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

Start hiding stories from chats list.

This commit is contained in:
John Preston
2023-06-02 13:20:27 +04:00
parent 17a5c27658
commit d0e1ac1238
8 changed files with 97 additions and 4 deletions

View File

@@ -522,6 +522,7 @@ not_null<UserData*> Session::processUser(const MTPUser &data) {
? Flag::Contact
| Flag::MutualContact
| Flag::DiscardMinPhoto
| Flag::StoriesHidden
: Flag());
const auto flagsSet = (data.is_deleted() ? Flag::Deleted : Flag())
| (data.is_verified() ? Flag::Verified : Flag())
@@ -534,6 +535,7 @@ not_null<UserData*> Session::processUser(const MTPUser &data) {
? (data.is_contact() ? Flag::Contact : Flag())
| (data.is_mutual_contact() ? Flag::MutualContact : Flag())
| (data.is_apply_min_photo() ? Flag() : Flag::DiscardMinPhoto)
| (data.is_stories_hidden() ? Flag::StoriesHidden : Flag())
: Flag());
result->setFlags((result->flags() & ~flagsMask) | flagsSet);
if (minimal) {