Merge pull request #447 from glowing-bear/unread-only-show-core

Keep core buffer visible with 'only show unread'
This commit is contained in:
Tor Hveem 2014-09-13 18:42:06 +02:00
commit 2163b930f6

View file

@ -541,6 +541,10 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
if (models.getActiveBuffer() === buffer) {
return true;
}
// Always show core buffer in the list (issue #438)
if (buffer.fullName === "core.weechat") {
return true;
}
return buffer.unread > 0 || buffer.notification > 0;
}
return true;