Specify replaces_state in ClientEvent (#2345)

Signed-off-by: timedout <git@nexy7574.co.uk>
This commit is contained in:
timedout 2026-04-21 21:53:17 +01:00 committed by GitHub
parent fafd11f809
commit 09e745bcdf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 3 deletions

View file

@ -0,0 +1 @@
Specify `unsigned.replaces_state` in client-formatted events. Contributed by @nexy7574.

View file

@ -105,9 +105,10 @@ properties:
type: string type: string
prev_content: prev_content:
description: | description: |
The previous `content` for this event. This field is generated The `content` of the previous state event that was replaced by this event.
by the local homeserver, and is only returned if the event is a state event, This field is generated by the local homeserver, and is only returned if
and the client has permission to see the previous content. the event is a state event, and the client has permission to see the
previous event.
x-changedInMatrixVersion: x-changedInMatrixVersion:
"1.2": | "1.2": |
Previously, this field was specified at the top level of returned Previously, this field was specified at the top level of returned
@ -117,6 +118,13 @@ properties:
this. this.
title: EventContent title: EventContent
type: object type: object
replaces_state:
description: |
The event ID of the state event replaced by this event. This field is generated
by the local homeserver, and is only returned if the event is a state event.
Unlike `prev_content`, this field is included regardless of history visibility.
type: string
x-addedInMatrixVersion: "1.19"
membership: membership:
description: | description: |
The room membership of the user making the request, at the time of the event. The room membership of the user making the request, at the time of the event.