Browse Source

notification: ignore cancelled notifications

bboozzoo/device-cache
Maciek Borzecki 10 years ago
parent
commit
f7bca80a29
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      src/notification.vala

+ 6
- 0
src/notification.vala View File

@ -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");


Loading…
Cancel
Save