diff options
author | Kegsay <kegan@matrix.org> | 2020-06-26 11:07:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-26 11:07:52 +0100 |
commit | 4897beabeed3281f3e45a1426e6f1c9359e3152b (patch) | |
tree | 4746aecb87086d81de065ec30283c8ec48ff9f36 /roomserver/storage/interface.go | |
parent | c1d2382e6d7f459ddf911a16aac7d4e63d50838b (diff) |
Finish implementing retiring invites (#1166)
* Pass retired invites to the syncapi with the event ID of the invite
* Implement retire invite streaming
* Update whitelist
Diffstat (limited to 'roomserver/storage/interface.go')
-rw-r--r-- | roomserver/storage/interface.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roomserver/storage/interface.go b/roomserver/storage/interface.go index 52e6a96b..0c4e2e0b 100644 --- a/roomserver/storage/interface.go +++ b/roomserver/storage/interface.go @@ -102,9 +102,9 @@ type Database interface { // Returns an error if there was a problem talking to the database. LatestEventIDs(ctx context.Context, roomNID types.RoomNID) ([]gomatrixserverlib.EventReference, types.StateSnapshotNID, int64, error) // Look up the active invites targeting a user in a room and return the - // numeric state key IDs for the user IDs who sent them. + // numeric state key IDs for the user IDs who sent them along with the event IDs for the invites. // Returns an error if there was a problem talking to the database. - GetInvitesForUser(ctx context.Context, roomNID types.RoomNID, targetUserNID types.EventStateKeyNID) (senderUserIDs []types.EventStateKeyNID, err error) + GetInvitesForUser(ctx context.Context, roomNID types.RoomNID, targetUserNID types.EventStateKeyNID) (senderUserIDs []types.EventStateKeyNID, eventIDs []string, err error) // Save a given room alias with the room ID it refers to. // Returns an error if there was a problem talking to the database. SetRoomAlias(ctx context.Context, alias string, roomID string, creatorUserID string) error |