// FREEBIE
@ -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(),
@ -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;