Use the new end_of_history message
This commit is contained in:
parent
2267ec8c43
commit
37c3f12790
1 changed files with 2 additions and 1 deletions
|
@ -197,7 +197,8 @@ const handleMessage = function (ctx, user, msg) {
|
||||||
storeMessage(ctx, ctx.channels[parsed[1]], JSON.stringify(key));
|
storeMessage(ctx, ctx.channels[parsed[1]], JSON.stringify(key));
|
||||||
historyKeeperKeys[parsed[1]] = parsed[2];
|
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;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue