mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 22:46:10 +00:00
Create dialogs widget only in the primary window.
This commit is contained in:
@@ -994,7 +994,7 @@ Window::Controller *Application::ensureSeparateWindowForPeer(
|
||||
}
|
||||
const auto result = _separateWindows.emplace(
|
||||
peer->owner().history(peer),
|
||||
std::make_unique<Window::Controller>()).first->second.get();
|
||||
std::make_unique<Window::Controller>(peer)).first->second.get();
|
||||
result->showAccount(&peer->account());
|
||||
result->sessionController()->showPeerHistory(peer);
|
||||
result->widget()->show();
|
||||
|
Reference in New Issue
Block a user