Skip to content
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

Rewrite receipt-handling code #3901

Merged
merged 7 commits into from
Nov 28, 2023
Merged

Conversation

andybalaam
Copy link
Member

@andybalaam andybalaam commented Nov 17, 2023

Part of element-hq/element-web#24392

Needed for matrix-org/matrix-react-sdk#11903

Re-write hasUserReadEvent to store all the information at the Room level. Because we must always consider unthreaded receipts globally, it doesn't make sense to answer this question at the Thread level.

We leave the old code for now, because it does other jobs, but soon, we will delete the old storage of receipts.


Here's what your changelog entry will look like:

🐛 Bug Fixes

Copy link
Member

@dbkr dbkr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a massive improvement in terms of code quality & test coverage at the very least!

spec/test-utils/thread.ts Outdated Show resolved Hide resolved
src/models/room-receipts.ts Show resolved Hide resolved
@andybalaam andybalaam added this pull request to the merge queue Nov 28, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 28, 2023
@andybalaam andybalaam added this pull request to the merge queue Nov 28, 2023
Merged via the queue into develop with commit c49a527 Nov 28, 2023
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants