2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Update API scheme on layer 148.

This commit is contained in:
John Preston
2022-09-27 10:25:26 +04:00
parent 73e56b0340
commit c90f879c96
13 changed files with 149 additions and 95 deletions

View File

@@ -36,7 +36,13 @@ public:
[[nodiscard]] ForumTopic *topicFor(not_null<HistoryItem*> item);
[[nodiscard]] ForumTopic *topicFor(MsgId rootId);
void applyReceivedTopics(const MTPmessages_ForumTopics &topics);
private:
void applyReceivedTopics(
const MTPmessages_ForumTopics &topics,
bool updateOffset);
const not_null<History*> _history;
base::flat_map<MsgId, std::unique_ptr<ForumTopic>> _topics;