2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Correctly track General editing service messages.

This commit is contained in:
John Preston
2022-11-29 20:21:35 +04:00
parent 5e20c15c20
commit 3c799a5cc1
5 changed files with 42 additions and 6 deletions

View File

@@ -91,6 +91,9 @@ public:
void setClosed(bool closed);
void setClosedAndSave(bool closed);
[[nodiscard]] bool hidden() const;
void setHidden(bool hidden);
[[nodiscard]] bool creating() const;
void discard();
@@ -162,10 +165,11 @@ public:
private:
enum class Flag : uchar {
Closed = (1 << 0),
My = (1 << 1),
HasPinnedMessages = (1 << 2),
GeneralIconActive = (1 << 3),
GeneralIconSelected = (1 << 4),
Hidden = (1 << 1),
My = (1 << 2),
HasPinnedMessages = (1 << 3),
GeneralIconActive = (1 << 4),
GeneralIconSelected = (1 << 5),
};
friend inline constexpr bool is_flag_type(Flag) { return true; }
using Flags = base::flags<Flag>;