diff --git a/lib/historyKeeper.js b/lib/historyKeeper.js index 03f31383b..348e3cc3f 100644 --- a/lib/historyKeeper.js +++ b/lib/historyKeeper.js @@ -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,