From 0c2ffab3b91858260d25df2c23e2696cb65fe130 Mon Sep 17 00:00:00 2001 From: Tor Hveem Date: Wed, 16 Oct 2013 22:42:25 +0200 Subject: [PATCH] Searching now works with onlyUnread activated --- js/websockets.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/websockets.js b/js/websockets.js index 819592d..a49d1a4 100644 --- a/js/websockets.js +++ b/js/websockets.js @@ -385,6 +385,8 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout', }; $scope.hasUnread = function(buffer) { + // if search is set, return every buffer + if($scope.search.$) return true; if($scope.onlyUnread) { // Always show current buffer in list if (models.getActiveBuffer() == buffer) {