2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 06:55:58 +00:00

Remove some calls to Auth().

This commit is contained in:
John Preston
2019-07-24 13:13:51 +02:00
parent 9cf4cf6dca
commit 06982fdf04
39 changed files with 573 additions and 444 deletions

View File

@@ -590,7 +590,9 @@ void MainWindow::onShowAddContact() {
if (isHidden()) showFromTray();
if (account().sessionExists()) {
Ui::show(Box<AddContactBox>(), LayerOption::KeepOther);
Ui::show(
Box<AddContactBox>(&account().session()),
LayerOption::KeepOther);
}
}
@@ -599,7 +601,9 @@ void MainWindow::onShowNewGroup() {
if (account().sessionExists()) {
Ui::show(
Box<GroupInfoBox>(GroupInfoBox::Type::Group),
Box<GroupInfoBox>(
&account().session(),
GroupInfoBox::Type::Group),
LayerOption::KeepOther);
}
}
@@ -609,7 +613,9 @@ void MainWindow::onShowNewChannel() {
if (_main) {
Ui::show(
Box<GroupInfoBox>(GroupInfoBox::Type::Channel),
Box<GroupInfoBox>(
&account().session(),
GroupInfoBox::Type::Channel),
LayerOption::KeepOther);
}
}