summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/matterbridge/gomatrix/room.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/matterbridge/gomatrix/room.go')
-rw-r--r--vendor/github.com/matterbridge/gomatrix/room.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/vendor/github.com/matterbridge/gomatrix/room.go b/vendor/github.com/matterbridge/gomatrix/room.go
index c9b2351f..d1d22868 100644
--- a/vendor/github.com/matterbridge/gomatrix/room.go
+++ b/vendor/github.com/matterbridge/gomatrix/room.go
@@ -6,6 +6,19 @@ type Room struct {
State map[string]map[string]*Event
}
+// PublicRoom represents the information about a public room obtainable from the room directory
+type PublicRoom struct {
+ CanonicalAlias string `json:"canonical_alias"`
+ Name string `json:"name"`
+ WorldReadable bool `json:"world_readable"`
+ Topic string `json:"topic"`
+ NumJoinedMembers int `json:"num_joined_members"`
+ AvatarURL string `json:"avatar_url"`
+ RoomID string `json:"room_id"`
+ GuestCanJoin bool `json:"guest_can_join"`
+ Aliases []string `json:"aliases"`
+}
+
// UpdateState updates the room's current state with the given Event. This will clobber events based
// on the type/state_key combination.
func (room Room) UpdateState(event *Event) {