diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2022-03-03 19:58:08 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-03 19:58:08 +0000 |
commit | 8533c8b03d8916e3805c7d0e0020226017680147 (patch) | |
tree | e850fb7b748fae399984c0f227e521769c118de1 /synapse/handlers/room_member.py | |
parent | Rename various ApplicationServices interested methods (#11915) (diff) | |
download | synapse-8533c8b03d8916e3805c7d0e0020226017680147.tar.xz |
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.
Diffstat (limited to '')
-rw-r--r-- | synapse/handlers/room_member.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/room_member.py b/synapse/handlers/room_member.py index a582837cf0..7cbc484b06 100644 --- a/synapse/handlers/room_member.py +++ b/synapse/handlers/room_member.py @@ -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( |