diff --git a/js/glowingbear.js b/js/glowingbear.js index a58b291..4e5c822 100644 --- a/js/glowingbear.js +++ b/js/glowingbear.js @@ -578,9 +578,6 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout', $scope.showSidebar = false; models.setActiveBuffer(buffer); } - - // Cancel notification - window.plugin.notification.local.cancel(id); }; } }; @@ -1080,6 +1077,7 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout', id: id, message: body, title: title, + autoCancel: true, json: JSON.stringify({ buffer: buffer.id }) // remember buffer id for when the notification is clicked }); }