From b956dea7c12dd823840db1ae5cb1bd7565178c7d Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Sat, 21 Apr 2018 18:51:32 +0200 Subject: [PATCH] jump to buffers with notifiction with Alt-A, even if hidden. --- js/glowingbear.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/glowingbear.js b/js/glowingbear.js index 0bc3ca7..a79a3a5 100644 --- a/js/glowingbear.js +++ b/js/glowingbear.js @@ -725,7 +725,7 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout', if (buffer.pinned) { return true; } - return (buffer.unread > 0 || buffer.notification > 0) && !buffer.hidden; + return (buffer.unread > 0 && !buffer.hidden) || buffer.notification > 0; } return !buffer.hidden; }; @@ -796,7 +796,7 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout', // Try to find buffer with notification for (i in sortedBuffers) { buffer = sortedBuffers[i]; - if (buffer.notification > 0 && !buffer.hidden) { + if (buffer.notification > 0) { $scope.setActiveBuffer(buffer.id); return; // return instead of break so that the second for loop isn't executed }