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

Remove General meta-forum-topic.

This commit is contained in:
John Preston
2022-10-13 12:46:30 +04:00
parent 92a4b27e65
commit 9fccdf21cc
8 changed files with 12 additions and 41 deletions

View File

@@ -44,8 +44,6 @@ class Forum;
class ForumTopic final : public Dialogs::Entry {
public:
static constexpr auto kGeneralId = 1;
ForumTopic(not_null<History*> history, MsgId rootId);
~ForumTopic();
@@ -58,9 +56,6 @@ public:
[[nodiscard]] not_null<Forum*> forum() const;
[[nodiscard]] rpl::producer<> destroyed() const;
[[nodiscard]] MsgId rootId() const;
[[nodiscard]] bool isGeneral() const {
return (_rootId == kGeneralId);
}
void setRealRootId(MsgId realId);