add a FIXME note
This commit is contained in:
1 parent
04ab7f538a
commit
0465f31a45
1 file changed
+1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user