element-hq / element-hq/synapse

Decide whether we want to support sending membership events for users that do not exist

Open
#7,937 0 comments 0 reactions 0 assignees View on GitHub
A-Membership O-Uncommon S-Tolerable T-Other
Dominant language
Python
Stars
4.6k
Forks
600
Avg merge
5d 22h
Merged PRs (30d)
51

Description

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

---

### Description

It is currently possible to send membership events (invite, kick, etc.) about users that are not known to the sending server. Typically this has not been a problem, but can arise in confusing behaviour such as when a user registers a new account and finding that they have existing invites (https://github.com/matrix-org/synapse/issues/7898).

It can also result in oddities such as being able to kick users from a room that do not exist (https://github.com/matrix-org/synapse/issues/2959).

However it can be advantageous to ban a user from a room even if the homeserver they're on claims they do not exist, therefore we may need to think about this on a per-membership event type basis.

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.