Improve notification Ctrl+Click to open a new window.

Fixes #29144.
This commit is contained in:
John Preston
2025-05-07 18:43:22 +04:00
parent 6c68bacaef
commit cae192682b
3 changed files with 89 additions and 55 deletions
@@ -2651,7 +2651,7 @@ void SessionController::showInNewWindow(
const auto active = activeChatCurrent();
// windows check active forum / active archive
const auto fromActive = active.thread()
? (active.thread() == id.thread)
? (active.thread() == id.thread && id.type == SeparateType::Chat)
: false;
const auto toSeparate = [=] {
Core::App().ensureSeparateWindowFor(id, msgId);