Merge pull request #639 from glowing-bear/always-show-server-buffers

Always show server buffers in hierarchical view
This commit is contained in:
Tor Hveem 2015-08-05 18:19:17 +02:00
commit 9cdfad15d2

View file

@ -651,7 +651,8 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
return true;
}
// Always show core buffer in the list (issue #438)
if (buffer.fullName === "core.weechat") {
// Also show server buffers in hierarchical view
if (buffer.fullName === "core.weechat" || (settings.orderbyserver && buffer.type === 'server')) {
return true;
}
return buffer.unread > 0 || buffer.notification > 0;