Skip to content

Commit

Permalink
Add RoomType to PublicRoom struct (#432)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Xinayder authored Sep 10, 2024
1 parent 01f3d2e commit 2c76491
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fclient/federationtypes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 2c76491

Please sign in to comment.