|
|
|
@ -309,7 +309,14 @@ function($rootScope, |
|
|
|
|
// Switch to first buffer on startup
|
|
|
|
|
if (i === 0) { |
|
|
|
|
models.setActiveBuffer(buffer.id); |
|
|
|
|
// Set setActiveBuffer emits a signal (activeBufferChanged)
|
|
|
|
|
// The $rootScope.$on('activeBuffer...' should take care of
|
|
|
|
|
// changing the buffer. However, and for a reason that I ignore
|
|
|
|
|
// this signal is not sent on initialization
|
|
|
|
|
$rootScope.connected = true; |
|
|
|
|
$location.path(buffer.fullName); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
@ -334,9 +341,6 @@ function($rootScope, |
|
|
|
|
weeChat.Protocol.formatSync({}) |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
$rootScope.connected = true; |
|
|
|
|
$location.path('/connected'); |
|
|
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
var onmessage = function(event) { |
|
|
|
|