From e9f858da9beb3acac142b9abe7564ee77a0f729e Mon Sep 17 00:00:00 2001
From: Javier <dev.git@javispedro.com>
Date: Wed, 2 Mar 2016 23:27:35 +0100
Subject: ignore transient notifications

---
 saltoqd/notificationmanager.cpp | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'saltoqd')

diff --git a/saltoqd/notificationmanager.cpp b/saltoqd/notificationmanager.cpp
index 22e8a35..03f6cc5 100644
--- a/saltoqd/notificationmanager.cpp
+++ b/saltoqd/notificationmanager.cpp
@@ -32,6 +32,11 @@ void NotificationManager::handleNotification(Notification *n)
 		return;
 	}
 
+	if (n->transient()) {
+		qDebug() << "Ignoring transient notification" << notificationId;
+		return;
+	}
+
 	Card *card = new Card(QString::number(qint64(notificationId)));
 
 	card->setHeader(n->sender());
-- 
cgit v1.2.3