summaryrefslogtreecommitdiff
path: root/notificationconn.cc
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2015-12-25 23:42:21 +0100
committerJavier <dev.git@javispedro.com>2015-12-25 23:42:21 +0100
commit3f63f0501e44c190c0d9c252c26272929442f07c (patch)
treeffdb3bcaee2f334faeb5a68586e7fe76ca5200a1 /notificationconn.cc
parentab90fac4e4c306f47ab0903b33d1b3aacb228c46 (diff)
downloadsapd-3f63f0501e44c190c0d9c252c26272929442f07c.tar.gz
sapd-3f63f0501e44c190c0d9c252c26272929442f07c.zip
ignore transient sailfish notifitications
Diffstat (limited to 'notificationconn.cc')
-rw-r--r--notificationconn.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/notificationconn.cc b/notificationconn.cc
index 7ac17f8..bfe719b 100644
--- a/notificationconn.cc
+++ b/notificationconn.cc
@@ -138,6 +138,11 @@ void NotificationConn::handleMessageReceived()
#if SAILFISH
void NotificationConn::handleNotification(watchfish::Notification *wfn)
{
+ if (wfn->transient()) {
+ // Ignore this notification
+ return;
+ }
+
QString sender = wfn->sender();
short applicationId = _knownSenders.value(sender, 0);
if (!applicationId) {