From 27b277ee6b2a4b1cbef12541e78fda8b6eb138bd Mon Sep 17 00:00:00 2001 From: Tor Hveem Date: Wed, 16 Oct 2013 22:48:22 +0200 Subject: [PATCH] Bugfix last commit, check for undefined --- js/websockets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/websockets.js b/js/websockets.js index a49d1a4..751d9e1 100644 --- a/js/websockets.js +++ b/js/websockets.js @@ -386,7 +386,7 @@ 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.search != undefined && $scope.search.$) return true; if($scope.onlyUnread) { // Always show current buffer in list if (models.getActiveBuffer() == buffer) {