BtbN c4528b2de8
Allow users to kick themselves (#3157)
As per the spec:
https://spec.matrix.org/v1.7/rooms/v10/#authorization-rules

"If membership is leave"
->
"If the sender matches state_key, allow if and only if that user’s
current membership state is invite, join, or knock."

I.e. a user can kick themselves. Bridges use this to make a user leave
while giving a reason.

Some recent change (likely
8ea1a11105
but I'm not 100% sure) changed that behaviour, resulting in heisenbridge
being unable to make users leave while giving a reason.
This works fine on Synapse.

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
Co-authored-by: kegsay <7190048+kegsay@users.noreply.github.com>
2023-11-22 12:15:45 +00:00
..
2022-12-23 14:11:11 +01:00
2023-05-17 00:33:27 +00:00
2023-05-17 00:33:27 +00:00
2023-05-17 00:33:27 +00:00
2023-05-17 00:33:27 +00:00
2023-05-17 00:33:27 +00:00
2023-10-23 15:17:21 +02:00
2023-05-17 00:33:27 +00:00
2023-05-17 00:33:27 +00:00
2023-05-17 00:33:27 +00:00