aboutsummaryrefslogtreecommitdiff
path: root/roomserver/types
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/types
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/types')
-rw-r--r--roomserver/types/types.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/roomserver/types/types.go b/roomserver/types/types.go
index d5fe3276..dfc112cf 100644
--- a/roomserver/types/types.go
+++ b/roomserver/types/types.go
@@ -140,6 +140,8 @@ type StateEntryList struct {
// (On postgresql this wraps a database transaction that holds a "FOR UPDATE"
// lock on the row in the rooms table holding the latest events for the room.)
type RoomRecentEventsUpdater interface {
+ // The room version of the room.
+ RoomVersion() gomatrixserverlib.RoomVersion
// The latest event IDs and state in the room.
LatestEvents() []StateAtEventAndReference
// The event ID of the latest event written to the output log in the room.