summary refs log tree commit diff
path: root/src/ChatPage.cpp
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-08-11 18:26:17 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-08-11 18:26:17 +0300
commitcebd8cbc199276883f38481050a4fa0959312617 (patch)
tree7847073d196d4ec725f3844d1e486445c1fc332a /src/ChatPage.cpp
parentIncrease the minimum modal size (diff)
downloadnheko-cebd8cbc199276883f38481050a4fa0959312617.tar.xz
Add option to disable desktop notifications
fixes #388
Diffstat (limited to 'src/ChatPage.cpp')
-rw-r--r--src/ChatPage.cpp2
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,