From 6a9a8e88f1bac650d86fcd1ae930bd658b37a21d Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 11 Feb 2022 21:07:49 +0100 Subject: [PATCH] store: fix no-op read receipt update detection If the old and new times are equal, the update is a no-op. --- store.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store.js b/store.js index a340d27..b14511a 100644 --- a/store.js +++ b/store.js @@ -87,7 +87,7 @@ export class Buffer { let receipts = { ...prev.receipts }; if (buf.receipts) { Object.keys(buf.receipts).forEach((k) => { - if (!receipts[k] || receipts[k].time <= buf.receipts[k].time) { + if (!receipts[k] || receipts[k].time < buf.receipts[k].time) { receipts[k] = buf.receipts[k]; updated = true; }