mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-02 15:35:51 +00:00
Remove App::app(), App::uploader(), App::api().
Also use Auth() instead of AuthSession::Current*().
This commit is contained in:
@@ -802,9 +802,9 @@ void MainWindow::toggleDisplayNotifyFromTray() {
|
||||
}
|
||||
}
|
||||
Local::writeUserSettings();
|
||||
AuthSession::Current().notifications().settingsChanged().notify(Window::Notifications::ChangeType::DesktopEnabled);
|
||||
Auth().notifications().settingsChanged().notify(Window::Notifications::ChangeType::DesktopEnabled);
|
||||
if (soundNotifyChanged) {
|
||||
AuthSession::Current().notifications().settingsChanged().notify(Window::Notifications::ChangeType::SoundEnabled);
|
||||
Auth().notifications().settingsChanged().notify(Window::Notifications::ChangeType::SoundEnabled);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user