Skip to content
Snippets Groups Projects
Unverified Commit 8533c8b0 authored by Richard van der Hoff's avatar Richard van der Hoff Committed by GitHub
Browse files

Avoid generating state groups for local out-of-band leaves (#12154)

If we locally generate a rejection for an invite received over federation, it
is stored as an outlier (because we probably don't have the state for the
room). However, currently we still generate a state group for it (even though
the state in that state group will be nonsense).

By setting the `outlier` param on `create_event`, we avoid the nonsensical
state.
parent fb0ffa96
No related branches found
No related tags found
No related merge requests found
Avoid generating state groups for local out-of-band leaves.
......@@ -1736,8 +1736,8 @@ class RoomMemberMasterHandler(RoomMemberHandler):
txn_id=txn_id,
prev_event_ids=prev_event_ids,
auth_event_ids=auth_event_ids,
outlier=True,
)
event.internal_metadata.outlier = True
event.internal_metadata.out_of_band_membership = True
result_event = await self.event_creation_handler.handle_new_client_event(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment