mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Separate window for forums/topics/sublists/archive.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user