aboutsummaryrefslogtreecommitdiff
path: root/roomserver/api/output.go
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2020-04-03 14:29:06 +0100
committerGitHub <noreply@github.com>2020-04-03 14:29:06 +0100
commit067b87506357c996fd6ddb11271db9469ad4ce80 (patch)
treee9127d78567b7676ba5ee607e9381ef4e0358911 /roomserver/api/output.go
parent955244c09298d0e6c870377dad3af2ffa1f5e578 (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/output.go')
-rw-r--r--roomserver/api/output.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/roomserver/api/output.go b/roomserver/api/output.go
index 4e7adff7..92a468a9 100644
--- a/roomserver/api/output.go
+++ b/roomserver/api/output.go
@@ -116,6 +116,8 @@ type OutputNewRoomEvent struct {
// Invite events can be received outside of an existing room so have to be
// tracked separately from the room events themselves.
type OutputNewInviteEvent struct {
+ // The room version of the invited room.
+ RoomVersion gomatrixserverlib.RoomVersion `json:"room_version"`
// The "m.room.member" invite event.
Event gomatrixserverlib.HeaderedEvent `json:"event"`
}