diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2020-04-03 14:29:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-03 14:29:06 +0100 |
commit | 067b87506357c996fd6ddb11271db9469ad4ce80 (patch) | |
tree | e9127d78567b7676ba5ee607e9381ef4e0358911 /roomserver/api/input.go | |
parent | 955244c09298d0e6c870377dad3af2ffa1f5e578 (diff) |
Invites v2 endpoint (#952)
* Start converting v1 invite endpoint to v2
* Update gomatrixserverlib
* Early federationsender code for sending invites
* Sending invites sorta happens now
* Populate invite request with stripped state
* Remodel a bit, don't reflect received invites
* Handle invite_room_state
* Handle room versions a bit better
* Update gomatrixserverlib
* Tweak order in destinationQueue.next
* Revert check in processMessage
* Tweak federation sender destination queue code a bit
* Add comments
Diffstat (limited to 'roomserver/api/input.go')
-rw-r--r-- | roomserver/api/input.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/roomserver/api/input.go b/roomserver/api/input.go index 42e8385d..87e3983e 100644 --- a/roomserver/api/input.go +++ b/roomserver/api/input.go @@ -86,7 +86,9 @@ type TransactionID struct { // the usual context a matrix room event would have. We usually do not have // access to the events needed to check the event auth rules for the invite. type InputInviteEvent struct { - Event gomatrixserverlib.HeaderedEvent `json:"event"` + RoomVersion gomatrixserverlib.RoomVersion `json:"room_version"` + Event gomatrixserverlib.HeaderedEvent `json:"event"` + InviteRoomState []gomatrixserverlib.InviteV2StrippedState `json:"invite_room_state"` } // InputRoomEventsRequest is a request to InputRoomEvents |