diff --git a/js/glowingbear.js b/js/glowingbear.js
index a8c8f94..5006e65 100644
--- a/js/glowingbear.js
+++ b/js/glowingbear.js
@@ -654,6 +654,8 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
$rootScope.$on('activeBufferChanged', function(event, unreadSum) {
var ab = models.getActiveBuffer();
+ $scope.bufferlines = ab.lines;
+ $scope.nicklist = ab.nicklist;
if (ab.requestedLines < $scope.lines) {
// 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.bufferlines = {};
+ $scope.nicklist = {};
+
$scope.activeBuffer = models.getActiveBuffer;
$rootScope.waseverconnected = false;
$rootScope.models = models;
- $rootScope.buffer = [];
-
$rootScope.iterCandidate = null;
$store.bind($scope, "host", "localhost");
|