From ee8c62873f2b0f8fbc6c475f7a221652cbffcbb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorenz=20H=C3=BCbschle-Schneider?= Date: Sun, 16 Mar 2014 22:59:12 +0000 Subject: [PATCH] Autocancel notifications --- js/glowingbear.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/js/glowingbear.js b/js/glowingbear.js index ca2ae3d..107667b 100644 --- a/js/glowingbear.js +++ b/js/glowingbear.js @@ -585,9 +585,6 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout', $scope.showSidebar = false; models.setActiveBuffer(buffer); } - - // Cancel notification - window.plugin.notification.local.cancel(id); }; } }; @@ -1106,6 +1103,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 }); }