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
@@ -567,9 +567,13 @@ void SessionNavigation::showPeerInfo(
}
void SessionNavigation::showPeerInfo(
not_null<History*> history,
not_null<Data::Thread*> thread,
const SectionShow &params) {
showPeerInfo(history->peer->id, params);
if (const auto topic = thread->asTopic()) {
showSection(std::make_shared<Info::Memento>(topic), params);
} else {
showPeerInfo(thread->peer()->id, params);
}
}
void SessionNavigation::showPeerHistory(