mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Show stories in chats list userpics.
This commit is contained in:
@@ -63,6 +63,8 @@ enum class UserDataFlag {
|
||||
VoiceMessagesForbidden = (1 << 16),
|
||||
PersonalPhoto = (1 << 17),
|
||||
StoriesHidden = (1 << 18),
|
||||
HasActiveStories = (1 << 19),
|
||||
HasUnreadStories = (1 << 20),
|
||||
};
|
||||
inline constexpr bool is_flag_type(UserDataFlag) { return true; };
|
||||
using UserDataFlags = base::flags<UserDataFlag>;
|
||||
@@ -174,6 +176,16 @@ public:
|
||||
[[nodiscard]] QString privateForwardName() const;
|
||||
void setPrivateForwardName(const QString &name);
|
||||
|
||||
enum class StoriesState {
|
||||
Unknown,
|
||||
None,
|
||||
HasRead,
|
||||
HasUnread,
|
||||
};
|
||||
[[nodiscard]] bool hasActiveStories() const;
|
||||
[[nodiscard]] bool hasUnreadStories() const;
|
||||
void setStoriesState(StoriesState state);
|
||||
|
||||
private:
|
||||
auto unavailableReasons() const
|
||||
-> const std::vector<Data::UnavailableReason> & override;
|
||||
|
Reference in New Issue
Block a user