From a99926f9fe15fa689af27a676c0b6d8a3033dabf Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 25 Aug 2025 12:02:51 +0200 Subject: [PATCH] Fix GET_HISTORY_RANGE returning same message multiple times #2035 --- 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 cb4c9c7d7..4be22239e 100644 --- a/lib/hk-util.js +++ b/lib/hk-util.js @@ -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();