Made discussion group open in same non-primary window as its channel.

This commit is contained in:
23rd
2026-06-24 08:52:16 +03:00
parent b023fd2587
commit a2f2db30f6
3 changed files with 6 additions and 2 deletions
+2
View File
@@ -1354,6 +1354,8 @@ bool MainWidget::showHistoryInDifferentWindow(
return true;
} else if (windowId().hasChatsList()) {
return false;
} else if (params.preferCurrentWindow) {
return false;
}
const auto account = not_null(&session().account());
auto primary = Core::App().separateWindowFor(account);