Separate window for forums/topics/sublists/archive.

This commit is contained in:
John Preston
2024-06-28 21:44:06 +04:00
parent 6dc3bd65e8
commit 69d21f73ef
34 changed files with 753 additions and 414 deletions
+2 -1
View File
@@ -497,7 +497,8 @@ Window::SessionController *Session::tryResolveWindow(
if (forPeer) {
auto primary = (Window::SessionController*)nullptr;
for (const auto &window : _windows) {
if (window->singlePeer() == forPeer) {
const auto thread = window->windowId().thread;
if (thread && thread->peer() == forPeer) {
return window;
} else if (window->isPrimary()) {
primary = window;