diff options
author | Wim <wim@42.be> | 2020-02-09 23:49:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-09 23:49:17 +0100 |
commit | 23083f3ae0ffd28ca4094c75c90ba45fc57bd523 (patch) | |
tree | ef2dcfd78de408fc9349e18e08d480211c393bb3 /vendor/github.com/matterbridge/gomatrix/room.go | |
parent | 1985873494ddcfb73ec04525ebc1b7ba0b1f428d (diff) | |
download | matterbridge-msglm-23083f3ae0ffd28ca4094c75c90ba45fc57bd523.tar.gz matterbridge-msglm-23083f3ae0ffd28ca4094c75c90ba45fc57bd523.tar.bz2 matterbridge-msglm-23083f3ae0ffd28ca4094c75c90ba45fc57bd523.zip |
Rebase gomatrix vendor with upstream (#1006)
Diffstat (limited to 'vendor/github.com/matterbridge/gomatrix/room.go')
-rw-r--r-- | vendor/github.com/matterbridge/gomatrix/room.go | 13 |
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) { |