2
0
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:
John Preston
2022-10-04 19:34:45 +04:00
parent 065d2e2ac9
commit 3722e55b67
32 changed files with 447 additions and 130 deletions

View File

@@ -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;