From 2c764912ce93ab4f5b6d34bbfacd2f01699840fc Mon Sep 17 00:00:00 2001 From: Alexandre Oliveira <1251067+Xinayder@users.noreply.github.com> Date: Tue, 10 Sep 2024 22:06:22 +0300 Subject: [PATCH] Add RoomType to PublicRoom struct (#432) Required for MSC3827: Filtering of /publicRooms by room type ### Pull Request Checklist * [X] Pull request includes a [sign off](https://github.com/matrix-org/dendrite/blob/master/docs/CONTRIBUTING.md#sign-off): I have already signed off privately --- fclient/federationtypes.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fclient/federationtypes.go b/fclient/federationtypes.go index 0579df83..c46dd0c4 100644 --- a/fclient/federationtypes.go +++ b/fclient/federationtypes.go @@ -131,6 +131,8 @@ type PublicRoom struct { AvatarURL string `json:"avatar_url,omitempty"` // The join rule for this room JoinRule string `json:"join_rule,omitempty"` + // The type of the room. + RoomType string `json:"room_type,omitempty"` } // A RespEventAuth is the content of a response to GET /_matrix/federation/v1/event_auth/{roomID}/{eventID}