From 8939c61c7ceb32f6760c50f2646b8920387f4ea6 Mon Sep 17 00:00:00 2001 From: lilia Date: Thu, 28 Jul 2016 18:09:09 -0700 Subject: [PATCH] Log on notification removal // FREEBIE --- js/models/conversations.js | 1 + js/notifications.js | 1 + 2 files changed, 2 insertions(+) diff --git a/js/models/conversations.js b/js/models/conversations.js index b6b8dcc2..a0390597 100644 --- a/js/models/conversations.js +++ b/js/models/conversations.js @@ -438,6 +438,7 @@ var conversationId = this.id; sender.fetch().then(function() { sender.getNotificationIcon().then(function(iconUrl) { + console.log('adding notification'); Whisper.Notifications.add({ title : sender.getTitle(), message : message.getNotificationText(), diff --git a/js/notifications.js b/js/notifications.js index e00fcd94..9e9bbbe4 100644 --- a/js/notifications.js +++ b/js/notifications.js @@ -122,6 +122,7 @@ return (setting === SETTINGS.MESSAGE || setting === SETTINGS.NAME); }, onRemove: function() { + console.log('remove notification'); if (this.length === 0) { extension.notification.clear(); return;