diff --git a/www/common/outer/messenger.js b/www/common/outer/messenger.js index 43b313f3b..a7ef27837 100644 --- a/www/common/outer/messenger.js +++ b/www/common/outer/messenger.js @@ -891,10 +891,10 @@ define([ onDirectMessage(ctx, msg, sender); }); ctx.store.network.on('disconnect', function () { - ctx.emit('DISCONNECT', null, getAllClients()); + ctx.emit('DISCONNECT', null, getAllClients(ctx)); }); ctx.store.network.on('reconnect', function () { - ctx.emit('RECONNECT', null, getAllClients()); + ctx.emit('RECONNECT', null, getAllClients(ctx)); }); messenger.onFriendUpdate = function (curve) {