From 70881e2dff4153426ddc8c4fb425cf0c30ae2d3f Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 3 Mar 2025 14:17:47 +0100 Subject: [PATCH] Fix history range issue --- lib/hk-util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hk-util.js b/lib/hk-util.js index 4ac1ffdd7..0a68f9f20 100644 --- a/lib/hk-util.js +++ b/lib/hk-util.js @@ -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,