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

Support pinned messages bar in topics.

This commit is contained in:
John Preston
2022-10-28 09:19:27 +04:00
parent da1e784803
commit 8dc27339b4
40 changed files with 811 additions and 206 deletions

View File

@@ -130,9 +130,8 @@ struct HistoryUpdate {
BotKeyboard = (1U << 12),
CloudDraft = (1U << 13),
LocalDraftSet = (1U << 14),
PinnedMessages = (1U << 15),
LastUsedBit = (1U << 15),
LastUsedBit = (1U << 14),
};
using Flags = base::flags<Flag>;
friend inline constexpr auto is_flag_type(Flag) { return true; }
@@ -156,7 +155,7 @@ struct TopicUpdate {
CloudDraft = (1U << 8),
Closed = (1U << 9),
LastUsedBit = (1U << 8),
LastUsedBit = (1U << 9),
};
using Flags = base::flags<Flag>;
friend inline constexpr auto is_flag_type(Flag) { return true; }
@@ -196,8 +195,9 @@ struct EntryUpdate {
None = 0,
Repaint = (1U << 0),
HasPinnedMessages = (1U << 1),
LastUsedBit = (1U << 0),
LastUsedBit = (1U << 1),
};
using Flags = base::flags<Flag>;
friend inline constexpr auto is_flag_type(Flag) { return true; }