Do not ignore window opens when considering active channels

This commit is contained in:
Pavel Djundik 2016-12-21 12:38:50 +02:00
parent 3e6a3651e9
commit 555902bfba

View File

@ -377,8 +377,14 @@ Client.prototype.more = function(data) {
});
};
Client.prototype.open = function(socketId, data) {
var target = this.find(data);
Client.prototype.open = function(socketId, target) {
// Opening a window like settings
if (target === null) {
this.attachedClients[socketId] = -1;
return;
}
target = this.find(target);
if (!target) {
return;
}