Improve separate window support.

This commit is contained in:
John Preston
2025-05-30 18:33:47 +04:00
parent 50b761fab2
commit 6068678fa1
7 changed files with 31 additions and 29 deletions
@@ -911,8 +911,10 @@ void Widget::chosenRow(const ChosenRow &row) {
if (controller()->shownForum().current() == forum) {
controller()->closeForum();
} else if (row.newWindow) {
controller()->showInNewWindow(
Window::SeparateId(Window::SeparateType::Forum, history));
const auto type = forum->channel()->useSubsectionTabs()
? Window::SeparateType::Chat
: Window::SeparateType::Forum;
controller()->showInNewWindow(Window::SeparateId(type, history));
} else {
controller()->showForum(
forum,