diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2020-04-24 16:30:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-24 16:30:25 +0100 |
commit | 3ab8ebf6b8fbc813bfb3e0e0735e76a69a8ed2dd (patch) | |
tree | a5e83730ac7c8e7f8b53b102c4a426a1ce930ba8 /roomserver/api/input.go | |
parent | be558f02aa956cfff51c5dfcf57575b46254b0db (diff) |
More invite support (#979)
* Update gomatixserverlib
* Try to build invite stripped state if not given to us
* SendInvite improvements
* Transpose invite_room_state into invite_state.events for sync API
* Remove syncapi debugging output
* Use RespInviteV2
* Update gomatrixserverlib
* Send the invite event as a normal roomserver event too, for incorporating into room (should this be done by the roomserver automatically for invite inputs?)
* Federation sender use invite_room_state, room server try to insert membership state
* Check supported room versions on the invite endpoint
* Prevent roomserver query API from trying to handle requests for stub rooms
* Adding a nolint
* Replace IsRoomStub with RoomNIDExcludingStubs, fix query API to use that instead
* Review comments
Diffstat (limited to 'roomserver/api/input.go')
-rw-r--r-- | roomserver/api/input.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/roomserver/api/input.go b/roomserver/api/input.go index 87e3983e..bb4e040d 100644 --- a/roomserver/api/input.go +++ b/roomserver/api/input.go @@ -89,6 +89,8 @@ type InputInviteEvent struct { RoomVersion gomatrixserverlib.RoomVersion `json:"room_version"` Event gomatrixserverlib.HeaderedEvent `json:"event"` InviteRoomState []gomatrixserverlib.InviteV2StrippedState `json:"invite_room_state"` + SendAsServer string `json:"send_as_server"` + TransactionID *TransactionID `json:"transaction_id"` } // InputRoomEventsRequest is a request to InputRoomEvents |