store: fix no-op read receipt update detection

If the old and new times are equal, the update is a no-op.
This commit is contained in:
Simon Ser 2022-02-11 21:07:49 +01:00
parent f47d93af8a
commit 6a9a8e88f1

View file

@ -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;
}