2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Implement simple sub-column for topics list.

This commit is contained in:
John Preston
2022-11-30 10:31:33 +04:00
parent beaea9c57d
commit 5d8a2bc7b7
16 changed files with 321 additions and 182 deletions

View File

@@ -116,14 +116,11 @@ void CheckChatInvite(
}
Core::App().hideMediaView();
const auto show = [&](not_null<PeerData*> chat) {
const auto way = Window::SectionShow::Way::Forward;
if (const auto forum = chat->forum()) {
strong->openForum(
forum->channel(),
Window::SectionShow::Way::Forward);
strong->showForum(forum, way);
} else {
strong->showPeerHistory(
chat,
Window::SectionShow::Way::Forward);
strong->showPeerHistory(chat, way);
}
};
result.match([=](const MTPDchatInvite &data) {