element-hq / element-hq/synapse

Allow users to revoke an invite they sent

Open
#9,582 0 comments 0 reactions 0 assignees View on GitHub
A-Invite T-Enhancement
Dominant language
Python
Stars
4.6k
Forks
600
Avg merge
5d 22h
Merged PRs (30d)
51

Description

This issue has been migrated from [#9582](https://github.com/matrix-org/synapse/issues/9582).

---

**Description:**

A user should be allowed to revoke an invite they sent even if they do not have the necessary power level to be able to *kick* the user after they join. This is useful in cases where you mistakenly invite the user into the wrong room. It is also the most intuitive behaviour from a user's perspective, IMO.

Conceptually, if we view this as a state diagram composed of states (as nodes) and actions (as arrows), any `* -> leave` arrow where the `sender` and `state_key` do not match is currently considered a "kick".

I propose that we allow an additional `invite -> leave` "disinvite" arrow which is allowed if the `sender` of the `invite` event is the same as the `sender` of a subsequent `leave` event.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.