Skip to content
This repository was archived by the owner on Nov 17, 2025. It is now read-only.
This repository was archived by the owner on Nov 17, 2025. It is now read-only.

Supress membership field on MSC4115 #421

@kegsay

Description

@kegsay

Part of element-hq/element-meta#2317

Servers that support MSC4115 will be sending down a new key unsigned.membership that represents:

the membership of the user making the request, according to the state of the room at the time of the event being returned

This is incompatible with sliding sync's current architecture, which deduplicates events in the events table. This means Alice could receive the event first, with unsigned.membership representing Alice's membership, and then we could serve that same event to Bob. This results in sliding sync lying about this value to clients. We should ensure that we strip this key for now.

Longer term, we need to add a new table to track this membership value for each user for each event and then repopulate it when the user connects to the proxy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions