New buffers are always active
This commit is contained in:
parent
ae3a9f7044
commit
f85b7110da
|
@ -63,11 +63,7 @@ weechat.factory('handlers', ['$rootScope', 'models', 'plugins', function($rootSc
|
||||||
var bufferMessage = message['objects'][0]['content'][0];
|
var bufferMessage = message['objects'][0]['content'][0];
|
||||||
var buffer = new models.Buffer(bufferMessage);
|
var buffer = new models.Buffer(bufferMessage);
|
||||||
models.addBuffer(buffer);
|
models.addBuffer(buffer);
|
||||||
if ($rootScope.waitForQueryWindow === buffer.fullName) {
|
models.setActiveBuffer(buffer.id);
|
||||||
// We're waiting for a query window
|
|
||||||
models.setActiveBuffer(buffer.id);
|
|
||||||
$rootScope.waitForQueryWindow = "";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var handleBufferTitleChanged = function(message) {
|
var handleBufferTitleChanged = function(message) {
|
||||||
|
@ -554,7 +550,6 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
|
||||||
buffName = buffName.substring(0, buffName.lastIndexOf('.')) + '.' + nick;
|
buffName = buffName.substring(0, buffName.lastIndexOf('.')) + '.' + nick;
|
||||||
|
|
||||||
if (!$scope.setActiveBuffer(buffName, 'fullName')) {
|
if (!$scope.setActiveBuffer(buffName, 'fullName')) {
|
||||||
$rootScope.waitForQueryWindow = buffName;
|
|
||||||
connection.sendMessage('/query ' + nick);
|
connection.sendMessage('/query ' + nick);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue