mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-12 19:49:59 +05:00
Fix GET_HISTORY_RANGE returning same message multiple times #2035
This commit is contained in:
parent
437bc15e96
commit
a99926f9fe
@ -804,7 +804,7 @@ const handleGetHistoryRange = function (Env, Server, seq, userId, parsed) {
|
||||
if (hash === untilHash || untilHash === 'NONE') { found = true; }
|
||||
let then = hash === oldestKnownHash ? abort : readMore;
|
||||
if (found) {
|
||||
Server.send(userId, [0, HISTORY_KEEPER_ID, 'MSG', userId,
|
||||
return void Server.send(userId, [0, HISTORY_KEEPER_ID, 'MSG', userId,
|
||||
JSON.stringify(['HISTORY_RANGE', txid, parsed])], then);
|
||||
}
|
||||
return void readMore();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user