Browse Source

add a FIXME note

master
ansuz 9 months ago
parent
commit
0465f31a45
1 changed files with 1 additions and 0 deletions
  1. 1
      lib/hk-util.js

1
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);

Loading…
Cancel
Save