Add option to disable desktop notifications

fixes #388
This commit is contained in:
Konstantinos Sideris 2018-08-11 18:26:17 +03:00
parent 05547086fb
commit cebd8cbc19
3 changed files with 32 additions and 6 deletions

View file

@ -569,7 +569,7 @@ ChatPage::ChatPage(QSharedPointer<UserSettings> userSettings, QWidget *parent)
hasNotifications = true;
}
if (hasNotifications)
if (hasNotifications && userSettings_->hasDesktopNotifications())
http::client()->notifications(
5,
[this](const mtx::responses::Notifications &res,