Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 64448b3

Browse files
committed
Fix event context for outliers in important MSC2716 spot
Fix event context for outlier causing failures in all of the MSC2716 Complement tests. The `EventContext.for_outlier` refactor happened in #10883 and this spot was left out.
1 parent 9fd057b commit 64448b3

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

synapse/handlers/message.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -953,18 +953,13 @@ async def create_new_client_event(
953953
depth=depth,
954954
)
955955

956-
old_state = None
956+
context = await self.state.compute_event_context(event)
957957

958958
# Pass on the outlier property from the builder to the event
959959
# after it is created
960960
if builder.internal_metadata.outlier:
961961
event.internal_metadata.outlier = builder.internal_metadata.outlier
962-
963-
# Calculate the state for outliers that pass in their own `auth_event_ids`
964-
if auth_event_ids:
965-
old_state = await self.store.get_events_as_list(auth_event_ids)
966-
967-
context = await self.state.compute_event_context(event, old_state=old_state)
962+
context = EventContext.for_outlier()
968963

969964
if requester:
970965
context.app_service = requester.app_service

0 commit comments

Comments
 (0)