Searching now works with onlyUnread activated

with-route-provider
Tor Hveem 12 years ago
parent 729a22c7b9
commit 0c2ffab3b9
  1. 2
      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) {

Loading…
Cancel
Save