Searching now works with onlyUnread activated

This commit is contained in:
Tor Hveem 2013-10-16 22:42:25 +02:00
parent 729a22c7b9
commit 0c2ffab3b9
1 changed files with 2 additions and 0 deletions

View File

@ -385,6 +385,8 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
}; };
$scope.hasUnread = function(buffer) { $scope.hasUnread = function(buffer) {
// if search is set, return every buffer
if($scope.search.$) return true;
if($scope.onlyUnread) { if($scope.onlyUnread) {
// Always show current buffer in list // Always show current buffer in list
if (models.getActiveBuffer() == buffer) { if (models.getActiveBuffer() == buffer) {