From 37c3f127902df0134c456c7e8abf405eccc2e357 Mon Sep 17 00:00:00 2001 From: yflory Date: Fri, 23 Sep 2016 15:37:12 +0200 Subject: [PATCH] Use the new end_of_history message --- NetfluxWebsocketSrv.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/NetfluxWebsocketSrv.js b/NetfluxWebsocketSrv.js index 80778864d..bfb8e4753 100644 --- a/NetfluxWebsocketSrv.js +++ b/NetfluxWebsocketSrv.js @@ -197,7 +197,8 @@ const handleMessage = function (ctx, user, msg) { storeMessage(ctx, ctx.channels[parsed[1]], JSON.stringify(key)); historyKeeperKeys[parsed[1]] = parsed[2]; } - sendMsg(ctx, user, [0, HISTORY_KEEPER_ID, 'MSG', user.id, 0]); + let parsedMsg = {state: 1, channel: parsed[1]}; + sendMsg(ctx, user, [0, HISTORY_KEEPER_ID, 'MSG', user.id, JSON.stringify(parsedMsg)]); }); } return;