mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-11-27 09:00:35 -05:00
Update EventContext get_current_event_ids and get_prev_event_ids to accept state filters and update calls where possible (#12791)
This commit is contained in:
parent
2be5a2b07b
commit
71e8afe34d
10 changed files with 65 additions and 18 deletions
|
|
@ -303,7 +303,10 @@ class RoomCreationHandler:
|
|||
context=tombstone_context,
|
||||
)
|
||||
|
||||
old_room_state = await tombstone_context.get_current_state_ids()
|
||||
state_filter = StateFilter.from_types(
|
||||
[(EventTypes.CanonicalAlias, ""), (EventTypes.PowerLevels, "")]
|
||||
)
|
||||
old_room_state = await tombstone_context.get_current_state_ids(state_filter)
|
||||
|
||||
# We know the tombstone event isn't an outlier so it has current state.
|
||||
assert old_room_state is not None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue