mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Support topic on-the-fly creation.
This commit is contained in:
@@ -30,6 +30,7 @@ public:
|
||||
static constexpr auto kGeneralId = 1;
|
||||
|
||||
ForumTopic(not_null<History*> history, MsgId rootId);
|
||||
~ForumTopic();
|
||||
|
||||
ForumTopic(const ForumTopic &) = delete;
|
||||
ForumTopic &operator=(const ForumTopic &) = delete;
|
||||
@@ -42,6 +43,8 @@ public:
|
||||
return (_rootId == kGeneralId);
|
||||
}
|
||||
|
||||
void setRealRootId(MsgId realId);
|
||||
|
||||
void applyTopic(const MTPForumTopic &topic);
|
||||
|
||||
TimeId adjustedChatListTimeId() const override;
|
||||
@@ -109,7 +112,7 @@ private:
|
||||
|
||||
const not_null<History*> _history;
|
||||
const not_null<Dialogs::MainList*> _list;
|
||||
const MsgId _rootId = 0;
|
||||
MsgId _rootId = 0;
|
||||
|
||||
QString _title;
|
||||
DocumentId _iconId = 0;
|
||||
|
Reference in New Issue
Block a user