Fix a slight bug with passworded rooms
This commit is contained in:
parent
b15c5654c5
commit
65ce2f661d
|
@ -112,6 +112,8 @@ User.prototype.initCallbacks = function () {
|
||||||
self.awaytimer && clearTimeout(self.awaytimer);
|
self.awaytimer && clearTimeout(self.awaytimer);
|
||||||
if (self.inChannel())
|
if (self.inChannel())
|
||||||
self.channel.userLeave(self);
|
self.channel.userLeave(self);
|
||||||
|
else if (self.inPendingChannel())
|
||||||
|
self.pendingChannel.userLeave(self);
|
||||||
});
|
});
|
||||||
|
|
||||||
self.socket.on("joinChannel", function (data) {
|
self.socket.on("joinChannel", function (data) {
|
||||||
|
|
Loading…
Reference in a new issue