@ -536,7 +536,8 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
$scope.isinstalled = false;
}
$rootScope.$on('activeBufferChanged', function() {
$rootScope.$on('activeBufferChanged', function(signal,
activeBuffer) {
$rootScope.scrollWithBuffer(true);
var ab = models.getActiveBuffer();
@ -405,7 +405,7 @@ models.service('models', ['$rootScope', '$filter', function($rootScope, $filter)
activeBuffer.unread = 0;
activeBuffer.notification = 0;
$rootScope.$emit('activeBufferChanged');
$rootScope.$emit('activeBufferChanged', activeBuffer);
$rootScope.$emit('notificationChanged');
return true;
};