Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Rewrite doesRoomOrThreadHaveUnreadMessages to use the receipt rewrite from js-sdk #11903

Merged
merged 18 commits into from
Nov 29, 2023

Conversation

andybalaam
Copy link
Member

@andybalaam andybalaam commented Nov 17, 2023

Part of element-hq/element-web#24392

Depends on matrix-org/matrix-js-sdk#3901


Here's what your changelog entry will look like:

🐛 Bug Fixes

  • Rewrite doesRoomOrThreadHaveUnreadMessages to use the receipt rewrite from js-sdk (#11903). Contributed by @andybalaam.

@andybalaam andybalaam added the T-Defect Bugs, crashes, hangs, vulnerabilities, or other reported problems label Nov 17, 2023
@andybalaam andybalaam requested a review from a team as a code owner November 17, 2023 17:06
@andybalaam andybalaam marked this pull request as draft November 17, 2023 17:07
@andybalaam
Copy link
Member Author

Cypress failure: "Spaces > should render subspaces in the space panel only when expanded" (rust and legacy encryption)

Jest failure: " EditWysiwygComposer › Should not render the component when not ready"

Both of these are unrelated to this PR, and being worked on I think.

So we're looking good!

Previously, if we found a receipt for an unknown event, we would use the
receipt timestamp and declare all events before that time to be read.
Now, we ignore such "dangling" receipts until we find the event they
refer to.

This new behaviour is more correct, but does lead to more messages being
considered unread.

This commit deletes tests that checked for the old behaviour.
@andybalaam
Copy link
Member Author

This now passes all tests but our manual testing suggests it has problems, so @florianduros and I are working to debug.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T-Defect Bugs, crashes, hangs, vulnerabilities, or other reported problems
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants