Fix type error in messenger

This commit is contained in:
yflory
2019-09-23 17:52:15 +02:00
parent 9f597dac1f
commit 851f6db7fb

View File

@@ -891,10 +891,10 @@ define([
onDirectMessage(ctx, msg, sender); onDirectMessage(ctx, msg, sender);
}); });
ctx.store.network.on('disconnect', function () { ctx.store.network.on('disconnect', function () {
ctx.emit('DISCONNECT', null, getAllClients()); ctx.emit('DISCONNECT', null, getAllClients(ctx));
}); });
ctx.store.network.on('reconnect', function () { ctx.store.network.on('reconnect', function () {
ctx.emit('RECONNECT', null, getAllClients()); ctx.emit('RECONNECT', null, getAllClients(ctx));
}); });
messenger.onFriendUpdate = function (curve) { messenger.onFriendUpdate = function (curve) {