From 555902bfba6989d64b65aaa6c2a09e7e2501228d Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Wed, 21 Dec 2016 12:38:50 +0200 Subject: [PATCH] Do not ignore window opens when considering active channels --- src/client.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/client.js b/src/client.js index 50edae01..a8270373 100644 --- a/src/client.js +++ b/src/client.js @@ -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; }