|
|
@ -713,8 +713,9 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout', |
|
|
|
|
|
|
|
|
|
|
|
$rootScope.switchToActivityBuffer = function() { |
|
|
|
$rootScope.switchToActivityBuffer = function() { |
|
|
|
// Find next buffer with activity and switch to it
|
|
|
|
// Find next buffer with activity and switch to it
|
|
|
|
for(var i in $scope.buffers) { |
|
|
|
var sortedBuffers = _.sortBy($scope.buffers, 'number'); |
|
|
|
var buffer = $scope.buffers[i]; |
|
|
|
for(var i in sortedBuffers) { |
|
|
|
|
|
|
|
var buffer = sortedBuffers[i]; |
|
|
|
if(buffer.notification > 0) { |
|
|
|
if(buffer.notification > 0) { |
|
|
|
$scope.setActiveBuffer(buffer.id); |
|
|
|
$scope.setActiveBuffer(buffer.id); |
|
|
|
break; |
|
|
|
break; |
|
|
|