-
-
Notifications
You must be signed in to change notification settings - Fork 606
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move receipt-specific logic into ReceiptAccumulator #3320
Move receipt-specific logic into ReceiptAccumulator #3320
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good.
src/sync-accumulator.ts
Outdated
}; | ||
}; | ||
}; | ||
_receipts: ReceiptAccumulator; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this really something that should be exposed via the interface?
It looks more like implementation specific to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't want to mess around with the design of the sync accumulator more than I needed to. I haven't really thought about what this interface actually does - let's discuss it sometime.
de9a4b3
to
80903de
Compare
Part of element-hq/element-web#24629
Move all the logic for processing receipts into the ReceiptAccumulator, so we can create simpler tests, and so it's easier to deal with when we start fixing bugs in it.
It's probably worth looking at this commit-by-commit.
This change is marked as an internal change (Task), so will not be included in the changelog.