element-hq / element-hq/synapse
Purging a room can lead to stuck invites
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 600
- Avg merge
- 5d 22h
- Merged PRs (30d)
- 51
Description
This issue has been migrated from [#15085](https://github.com/matrix-org/synapse/issues/15085).
---
The [Delete room API](https://matrix-org.github.io/synapse/latest/admin_api/rooms.html#delete-room-api) will kick out any existing *joined* members of the room, but does not (afaict) consider *invited* members.
Anyone with a pending invite then gets a stuck invite, because we are unable to generate a leave event.
Contributor guide
Research direction
Start with the Delete room API behavior described in the issue and trace how joined members are removed during room purging. Determine how pending invites should be handled so they no longer become stuck, then verify that purging a room leaves no unresolved invites.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100