From 0465f31a45dd1dca1cde9788b0add1d1b1d59460 Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 16 Apr 2020 13:02:27 -0400 Subject: [PATCH] add a FIXME note --- lib/hk-util.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/hk-util.js b/lib/hk-util.js index b28cad497..e9943f1c1 100644 --- a/lib/hk-util.js +++ b/lib/hk-util.js @@ -672,6 +672,7 @@ const handleGetHistoryRange = function (Env, Server, seq, userId, parsed) { if (!Array.isArray(messages)) { messages = []; } + // FIXME this reduction could be done in the worker instead of the main process var toSend = []; if (typeof (desiredMessages) === "number") { toSend = messages.slice(-desiredMessages);