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,