switchToActivityBuffer: Prioritise notifications
If there is a buffer with a notification, go there. Otherwise, go to one with unread lines.
This commit is contained in:
parent
93f40c64e9
commit
1a5b36b6f7
1 changed files with 5 additions and 1 deletions
|
@ -738,7 +738,11 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
|
|||
if (buffer.notification > 0) {
|
||||
$scope.setActiveBuffer(buffer.id);
|
||||
break;
|
||||
} else if(buffer.unread > 0) {
|
||||
}
|
||||
}
|
||||
for (var i in sortedBuffers) {
|
||||
var buffer = sortedBuffers[i];
|
||||
if(buffer.unread > 0) {
|
||||
$scope.setActiveBuffer(buffer.id);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue