From 45a0d0cd21dbeb3b769c531489f66b80e0693c41 Mon Sep 17 00:00:00 2001 From: Tor Hveem Date: Fri, 18 Oct 2013 15:59:46 +0200 Subject: [PATCH] Fix bug with onlyUnread and buffer with notifications without unread messages --- js/websockets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/websockets.js b/js/websockets.js index 85b71fd..7a7ed6f 100644 --- a/js/websockets.js +++ b/js/websockets.js @@ -436,7 +436,7 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout', if (models.getActiveBuffer() == buffer) { return true; } - return buffer.unread > 0; + return buffer.unread > 0 || buffer.notification > 0; } return true; };