Skip to content

Commit 7339344

Browse files
committed
feat: Add encryption and room_version fields to PublicRoom (MSC3266)
Add two new fields to PublicRoom struct for MSC3266 room summary support: - Encryption: The encryption algorithm used in the room - RoomVersion: The room version These fields use unstable prefixes (im.nheko.summary.*) until MSC3266 is merged into the Matrix spec. This enables federation hierarchy responses to include encryption and room version information for room previews. Ref: matrix-org/matrix-spec-proposals#3266
1 parent eb14008 commit 7339344

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

fclient/federationtypes.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,12 @@ type PublicRoom struct {
133133
JoinRule string `json:"join_rule,omitempty"`
134134
// The type of the room.
135135
RoomType string `json:"room_type,omitempty"`
136+
// The encryption algorithm used in the room, if encrypted (MSC3266).
137+
// Uses unstable prefix until MSC3266 is merged.
138+
Encryption string `json:"im.nheko.summary.encryption,omitempty"`
139+
// The room version (MSC3266).
140+
// Uses unstable prefix until MSC3266 is merged.
141+
RoomVersion string `json:"im.nheko.summary.room_version,omitempty"`
136142
}
137143

138144
// A RespEventAuth is the content of a response to GET /_matrix/federation/v1/event_auth/{roomID}/{eventID}

0 commit comments

Comments
 (0)