From c2bc034293b010b07dc300de76e5f754d6b79cb6 Mon Sep 17 00:00:00 2001 From: Tor Hveem Date: Fri, 11 Oct 2013 23:47:47 +0200 Subject: [PATCH] Always show current buffer in list --- js/websockets.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/websockets.js b/js/websockets.js index 436c701..98e76e2 100644 --- a/js/websockets.js +++ b/js/websockets.js @@ -482,6 +482,10 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout', $scope.hasUnread = function(buffer) { if($scope.onlyUnread) { + // Always show current buffer in list + if (models.getActiveBuffer() == buffer) { + return true; + } return (parseInt(buffer.unread) || 0) > 0; } return true;