mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-02 15:35:51 +00:00
Fixed recursive invoking of Application::windowFor.
This commit is contained in:
@@ -1341,7 +1341,7 @@ Window::Controller *Application::ensureSeparateWindowFor(
|
||||
Window::Controller *Application::windowFor(Window::SeparateId id) const {
|
||||
if (const auto separate = separateWindowFor(id)) {
|
||||
return separate;
|
||||
} else if (id && id.primary()) {
|
||||
} else if (id && !id.primary()) {
|
||||
return windowFor(not_null(id.account));
|
||||
}
|
||||
return activePrimaryWindow();
|
||||
|
Reference in New Issue
Block a user