element-hq / element-hq/synapse

Synapse emits invalid `m.room.power_levels` events

Open
#18,314 2 comments 1 reaction 0 assignees View on GitHub
A-Spec-Compliance O-Frequent S-Minor T-Defect
Dominant language
Python
Stars
4.6k
Forks
600
Avg merge
5d 22h
Merged PRs (30d)
51

Description

### Description

Containing unstable non-prefixed `historical`

Image

The historical field is from MSC2716 which has not yet reached FCP so at best this should be behind an opt-in flag, definitely should not have polluted countless rooms with a field which lacks namespacing.

matrix.org for example does not signal in `/versions` that it has `org.matrix.msc2716` support - yet does this anyway.

The MSC states namespacing for this field is not needed because it relies on an experimental room version `org.matrix.msc2716` & `org.matrix.msc2716v2` which matrix.org does not even claim it supports.

![Image](https://github.com/user-attachments/assets/db9d7922-ca5c-47ee-a593-906f7dbd6e3d)

### Steps to reproduce

1. create a new room with a stock Synapse
2. inspect `m.room.power_levels` event

### Homeserver

matrix.org

### Synapse Version

1.128.0rc1 (b=matrix-org-hotfixes,a8a6401b2f)

### Installation Method

I don't know

### Database

matrix.org

### Workers

I don't know

### Platform

matrix.org

### Configuration

_No response_

### Relevant log output

```shell
Unknown
```

### Anything else that would be useful to know?

_No response_

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.