-
Notifications
You must be signed in to change notification settings - Fork 51
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
Fix possible state reset issue #419
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #419 +/- ##
==========================================
+ Coverage 58.76% 58.90% +0.13%
==========================================
Files 51 51
Lines 7098 7105 +7
==========================================
+ Hits 4171 4185 +14
+ Misses 2536 2531 -5
+ Partials 391 389 -2
☔ View full report in Codecov by Sentry. |
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.
Can you add a comment to the test outlining which prev_events are wrong
?
It's impossible to tell what the event_ids are just from looking at the code.
Otherwise this looks like it should meet the rules outlined in the spec.
There isn't anything wrong with the |
Needs matrix-org/gomatrixserverlib#419 May fix: #2508, #1760
To be even more spec compliant, this adds a `IsRejected` type/function when resolving state. (Part 2 of #419)
The spec says:
The part we didn't do, given the membership event may not be resolved (e.g. it is conflicted):