synapse/synapse/events
Mathieu Velten 5cf74c2da0
Fix bug when rejecting withdrew invite with a third_party_rules module (#17930)
When rejecting a withdrew invite through federation, an out of band
event needs to be created.

When doing so with a third_party_rules module installed,
`get_prev_state_ids` [is
called](e0fdb862cb/synapse/module_api/callbacks/third_party_event_rules_callbacks.py (L285))
on the context to calculate the state to pass at `check_event_allowed`
callbacks.

The context for outliers is defined
[here](e0fdb862cb/synapse/events/snapshot.py (L168)),
and `state_group_before_event` is None.

This change makes the behavior of `get_prev_state_ids` and
`get_current_state_ids` match the one presented in the docstring
regarding null state_group.
2024-12-10 14:26:38 +00:00
..
__init__.py Sliding Sync: Update filters to be robust against remote invite rooms (#17450) 2024-07-30 13:20:29 -05:00
auto_accept_invites.py Bring auto-accept invite logic into Synapse (#17147) 2024-05-21 20:09:17 +00:00
builder.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
presence_router.py Format files with Ruff (#17643) 2024-09-02 12:39:04 +01:00
snapshot.py Fix bug when rejecting withdrew invite with a third_party_rules module (#17930) 2024-12-10 14:26:38 +00:00
utils.py Sliding Sync: Update filters to be robust against remote invite rooms (#17450) 2024-07-30 13:20:29 -05:00
validator.py import pydantic objects from the _pydantic_compat module (#17667) 2024-09-11 21:01:43 +00:00