2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +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

@@ -58,6 +58,7 @@ public:
[[nodiscard]] virtual not_null<History*> owningHistory() = 0;
[[nodiscard]] not_null<Thread*> migrateToOrMe() const;
[[nodiscard]] not_null<const History*> owningHistory() const {
return const_cast<Thread*>(this)->owningHistory();
}
@@ -110,6 +111,9 @@ public:
[[nodiscard]] virtual auto sendActionPainter()
-> not_null<HistoryView::SendActionPainter*> = 0;
[[nodiscard]] bool hasPinnedMessages() const;
void setHasPinnedMessages(bool has);
protected:
void setUnreadMarkFlag(bool unread);
@@ -118,6 +122,7 @@ private:
UnreadMark = (1 << 0),
Muted = (1 << 1),
UnreadThingsKnown = (1 << 2),
HasPinnedMessages = (1 << 3),
};
friend inline constexpr bool is_flag_type(Flag) { return true; }