don't overwrite cached indices when new users join a channel

pull/1/head
ansuz 5 years ago
parent 8700345ccc
commit b56367414b

@ -45,7 +45,7 @@ module.exports.create = function (config, cb) {
HK.dropChannel(Env, channelName);
},
channelOpen: function (Server, channelName, userId) {
Env.channel_cache[channelName] = {};
Env.channel_cache[channelName] = Env.channel_cache[channelName] || {};
Server.send(userId, [
0,
Env.id,

Loading…
Cancel
Save