diff options
author | Tulir Asokan <tulir@maunium.net> | 2018-09-05 10:55:48 +0300 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2018-09-05 10:55:48 +0300 |
commit | cfb2cc057c32330be0ca0a68cfbd245cb2b8e31b (patch) | |
tree | f0d02d40d41091fd052582fe1fe701c80decf0d7 /vendor/maunium.net/go/gomatrix/requests.go | |
parent | 68db26bcace31297471641fe95f8882e301f5699 (diff) |
Update to latest gomatrix. Things are broken
Diffstat (limited to 'vendor/maunium.net/go/gomatrix/requests.go')
-rw-r--r-- | vendor/maunium.net/go/gomatrix/requests.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/vendor/maunium.net/go/gomatrix/requests.go b/vendor/maunium.net/go/gomatrix/requests.go index af99a22..d8e10a6 100644 --- a/vendor/maunium.net/go/gomatrix/requests.go +++ b/vendor/maunium.net/go/gomatrix/requests.go @@ -31,7 +31,7 @@ type ReqCreateRoom struct { Invite []string `json:"invite,omitempty"` Invite3PID []ReqInvite3PID `json:"invite_3pid,omitempty"` CreationContent map[string]interface{} `json:"creation_content,omitempty"` - InitialState []Event `json:"initial_state,omitempty"` + InitialState []*Event `json:"initial_state,omitempty"` Preset string `json:"preset,omitempty"` IsDirect bool `json:"is_direct,omitempty"` } @@ -74,5 +74,9 @@ type ReqUnbanUser struct { // ReqTyping is the JSON request for https://matrix.org/docs/spec/client_server/r0.2.0.html#put-matrix-client-r0-rooms-roomid-typing-userid type ReqTyping struct { Typing bool `json:"typing"` - Timeout int64 `json:"timeout"` + Timeout int64 `json:"timeout,omitempty"` } + +type ReqPresence struct { + Presence string `json:"presence"` +}
\ No newline at end of file |