2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Fix unrelated stories on top.

This commit is contained in:
John Preston
2025-07-17 12:30:20 +04:00
parent 133effef0e
commit 9b490c9552
4 changed files with 49 additions and 9 deletions

View File

@@ -121,6 +121,7 @@ enum class UserDataFlag : uint32 {
HasStarsPerMessage = (1 << 23),
MessageMoneyRestrictionsKnown = (1 << 24),
ReadDatesPrivate = (1 << 25),
StoriesCorrespondent = (1 << 26),
};
inline constexpr bool is_flag_type(UserDataFlag) { return true; };
using UserDataFlags = base::flags<UserDataFlag>;
@@ -188,6 +189,9 @@ public:
[[nodiscard]] bool canSendIgnoreMoneyRestrictions() const;
[[nodiscard]] bool readDatesPrivate() const;
void setStoriesCorrespondent(bool is);
[[nodiscard]] bool storiesCorrespondent() const;
void setStarsPerMessage(int stars);
[[nodiscard]] int starsPerMessage() const;