diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-08-11 18:26:17 +0300 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-08-11 18:26:17 +0300 |
commit | cebd8cbc199276883f38481050a4fa0959312617 (patch) | |
tree | 7847073d196d4ec725f3844d1e486445c1fc332a /src/ChatPage.cpp | |
parent | Increase the minimum modal size (diff) | |
download | nheko-cebd8cbc199276883f38481050a4fa0959312617.tar.xz |
Add option to disable desktop notifications
fixes #388
Diffstat (limited to 'src/ChatPage.cpp')
-rw-r--r-- | src/ChatPage.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ChatPage.cpp b/src/ChatPage.cpp index 8f3c37a4..9f408a73 100644 --- a/src/ChatPage.cpp +++ b/src/ChatPage.cpp @@ -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, |