element-hq / element-hq/synapse
Creating a room with invitees from non-federated HS fails, but the room is created though.
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 600
- Avg merge
- 5d 22h
- Merged PRs (30d)
- 51
Description
This issue has been migrated from [#8137](https://github.com/matrix-org/synapse/issues/8137).
---
When a client creates a room with invite and federation is denied with the invitee HS, the client get a 403 with body
```json
{"errcode":"M_FORBIDDEN","error":"Federation denied with matrix.org."}
```
which is nice, but the room is actually created (no invitation is sent), which is a bit weird.
Synapse should ensure that it will be able to send invitations before creating the room, or create the room in memory and destroy it if something went wrong when sending the invitations.
Related workaround: https://github.com/vector-im/element-android/pull/1969
Contributor guide
Assessment
This issue has not been assessed yet.