Keep core buffer visible with 'only show unread'

This commit is contained in:
Lorenz Hübschle-Schneider 2014-09-13 17:39:29 +01:00
parent 8758cad336
commit c6e1bca78d

View file

@ -541,6 +541,10 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
if (models.getActiveBuffer() === buffer) { if (models.getActiveBuffer() === buffer) {
return true; 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 buffer.unread > 0 || buffer.notification > 0;
} }
return true; return true;