mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Support General topic somehow.
This commit is contained in:
@@ -51,6 +51,8 @@ class Forum;
|
||||
|
||||
class ForumTopic final : public Thread {
|
||||
public:
|
||||
static constexpr auto kGeneralId = 1;
|
||||
|
||||
ForumTopic(not_null<Forum*> forum, MsgId rootId);
|
||||
~ForumTopic();
|
||||
|
||||
@@ -58,6 +60,10 @@ public:
|
||||
return history();
|
||||
}
|
||||
|
||||
[[nodiscard]] bool isGeneral() const {
|
||||
return (_rootId == kGeneralId);
|
||||
}
|
||||
|
||||
[[nodiscard]] std::shared_ptr<RepliesList> replies() const;
|
||||
[[nodiscard]] not_null<ChannelData*> channel() const;
|
||||
[[nodiscard]] not_null<History*> history() const;
|
||||
|
Reference in New Issue
Block a user