Update API scheme on layer 148: Notifications.

Support editing / respect notification settings for topics.
This commit is contained in:
John Preston
2022-10-13 21:34:04 +04:00
parent b8bdca8921
commit d92580b8fc
47 changed files with 631 additions and 528 deletions
-10
View File
@@ -899,16 +899,6 @@ Data::Forum *PeerData::forum() const {
return nullptr;
}
Data::ForumTopic *PeerData::forumTopicFor(
not_null<const HistoryItem*> item) const {
if (const auto rootId = item->topicRootId()) {
if (const auto forum = this->forum()) {
return forum->topicFor(rootId);
}
}
return nullptr;
}
Data::ForumTopic *PeerData::forumTopicFor(MsgId rootId) const {
if (!rootId) {
return nullptr;