Fix history range issue

This commit is contained in:
yflory 2025-03-03 14:17:47 +01:00
parent 07096a9e25
commit 70881e2dff

View File

@ -789,7 +789,7 @@ const handleGetHistoryRange = function (Env, Server, seq, userId, parsed) {
if (typeof(content) !== 'string') { return void readMore(); }
const hash = getHash(content);
if (hash === untilHash) { found = true; }
if (hash === untilHash || untilHash === 'NONE') { found = true; }
let then = hash === oldestKnownHash ? abort : readMore;
if (found) {
Server.send(userId, [0, HISTORY_KEEPER_ID, 'MSG', userId,