Log on notification removal
// FREEBIE
This commit is contained in:
parent
4c0ed76909
commit
8939c61c7c
2 changed files with 2 additions and 0 deletions
|
@ -438,6 +438,7 @@
|
||||||
var conversationId = this.id;
|
var conversationId = this.id;
|
||||||
sender.fetch().then(function() {
|
sender.fetch().then(function() {
|
||||||
sender.getNotificationIcon().then(function(iconUrl) {
|
sender.getNotificationIcon().then(function(iconUrl) {
|
||||||
|
console.log('adding notification');
|
||||||
Whisper.Notifications.add({
|
Whisper.Notifications.add({
|
||||||
title : sender.getTitle(),
|
title : sender.getTitle(),
|
||||||
message : message.getNotificationText(),
|
message : message.getNotificationText(),
|
||||||
|
|
|
@ -122,6 +122,7 @@
|
||||||
return (setting === SETTINGS.MESSAGE || setting === SETTINGS.NAME);
|
return (setting === SETTINGS.MESSAGE || setting === SETTINGS.NAME);
|
||||||
},
|
},
|
||||||
onRemove: function() {
|
onRemove: function() {
|
||||||
|
console.log('remove notification');
|
||||||
if (this.length === 0) {
|
if (this.length === 0) {
|
||||||
extension.notification.clear();
|
extension.notification.clear();
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue