This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Make _get_state_map_for_room
not break when room state events don't contain an event id.
#13174
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When adding a
on_new_event
handler on a federated homeserver, I keep hitting:Apparently, we have some invalid state in the database of this homeserver (the event was already in the logs last May) and any attempt to call
_get_state_map_for_room
will break. The fact that_get_state_map_for_room
is solely due to the fact that there was noon_new_event
callback on this homeserver until now.This PR uses the more robust
get_current_state
to implement_get_state_map_for_room
, to avoid such breakages.Pull Request Checklist
EventStore
toEventWorkerStore
.".code blocks
.(run the linters)