|
|
@ -654,6 +654,8 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout', |
|
|
|
|
|
|
|
|
|
|
|
$rootScope.$on('activeBufferChanged', function(event, unreadSum) { |
|
|
|
$rootScope.$on('activeBufferChanged', function(event, unreadSum) { |
|
|
|
var ab = models.getActiveBuffer(); |
|
|
|
var ab = models.getActiveBuffer(); |
|
|
|
|
|
|
|
$scope.bufferlines = ab.lines; |
|
|
|
|
|
|
|
$scope.nicklist = ab.nicklist; |
|
|
|
|
|
|
|
|
|
|
|
if (ab.requestedLines < $scope.lines) { |
|
|
|
if (ab.requestedLines < $scope.lines) { |
|
|
|
// buffer has not been loaded, but some lines may already be present if they arrived after we connected
|
|
|
|
// buffer has not been loaded, but some lines may already be present if they arrived after we connected
|
|
|
@ -719,14 +721,15 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout', |
|
|
|
|
|
|
|
|
|
|
|
$scope.buffers = models.model.buffers; |
|
|
|
$scope.buffers = models.model.buffers; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$scope.bufferlines = {}; |
|
|
|
|
|
|
|
$scope.nicklist = {}; |
|
|
|
|
|
|
|
|
|
|
|
$scope.activeBuffer = models.getActiveBuffer; |
|
|
|
$scope.activeBuffer = models.getActiveBuffer; |
|
|
|
|
|
|
|
|
|
|
|
$rootScope.waseverconnected = false; |
|
|
|
$rootScope.waseverconnected = false; |
|
|
|
|
|
|
|
|
|
|
|
$rootScope.models = models; |
|
|
|
$rootScope.models = models; |
|
|
|
|
|
|
|
|
|
|
|
$rootScope.buffer = []; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$rootScope.iterCandidate = null; |
|
|
|
$rootScope.iterCandidate = null; |
|
|
|
|
|
|
|
|
|
|
|
$store.bind($scope, "host", "localhost"); |
|
|
|
$store.bind($scope, "host", "localhost"); |
|
|
|