POST /_matrix/client/v3/rooms/{roomId}/leave does not cover all possible error situations #1181
Labels
clarification
An area where the expected behaviour is understood, but the spec could do with being more explicit
wart
A point where the protocol is inconsistent or inelegant
https://spec.matrix.org/v1.3/client-server-api/#post_matrixclientv3roomsroomidleave
The spec covers the success state and the ratelimited state, but it does not cover leaving a room that you are not part of. I suspect that like the invite and join endpoints, it should no-op if you're effectively trying to leave->leave, but Synapse will only do this sometimes.
This was brought up in the context of matrix-org/matrix-spec-proposals#3848.
The text was updated successfully, but these errors were encountered: