mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Pass SessionNavigation to some boxes.
This commit is contained in:
@@ -602,7 +602,7 @@ void MainWindow::onShowNewGroup() {
|
||||
if (account().sessionExists()) {
|
||||
Ui::show(
|
||||
Box<GroupInfoBox>(
|
||||
&account().session(),
|
||||
sessionController(),
|
||||
GroupInfoBox::Type::Group),
|
||||
LayerOption::KeepOther);
|
||||
}
|
||||
@@ -611,10 +611,10 @@ void MainWindow::onShowNewGroup() {
|
||||
void MainWindow::onShowNewChannel() {
|
||||
if (isHidden()) showFromTray();
|
||||
|
||||
if (_main) {
|
||||
if (account().sessionExists()) {
|
||||
Ui::show(
|
||||
Box<GroupInfoBox>(
|
||||
&account().session(),
|
||||
sessionController(),
|
||||
GroupInfoBox::Type::Channel),
|
||||
LayerOption::KeepOther);
|
||||
}
|
||||
|
Reference in New Issue
Block a user