From f7bca80a29cb0679efb79c396dd453123d319401 Mon Sep 17 00:00:00 2001 From: Maciek Borzecki Date: Sun, 18 Jan 2015 21:17:14 +0100 Subject: [PATCH] notification: ignore cancelled notifications --- src/notification.vala | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/notification.vala b/src/notification.vala index ae5a85f..66429f5 100644 --- a/src/notification.vala +++ b/src/notification.vala @@ -57,6 +57,12 @@ class NotificationHandler : Object, PacketHandlerInterface { pkt.body.has_member("ticker") == false) return; + // maybe it's a notification about a notification being + // cancelled + if (pkt.body.has_member("isCancel") == true && + pkt.body.get_boolean_member("isCancel") == true) + return; + string app = pkt.body.get_string_member("appName"); string ticker = pkt.body.get_string_member("ticker");