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/tables | |
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/tables')
-rw-r--r-- | roomserver/storage/tables/interface.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roomserver/storage/tables/interface.go b/roomserver/storage/tables/interface.go index 11cff8a8..3aa8c538 100644 --- a/roomserver/storage/tables/interface.go +++ b/roomserver/storage/tables/interface.go @@ -100,8 +100,8 @@ type PreviousEvents interface { type Invites interface { InsertInviteEvent(ctx context.Context, txn *sql.Tx, inviteEventID string, roomNID types.RoomNID, targetUserNID, senderUserNID types.EventStateKeyNID, inviteEventJSON []byte) (bool, error) UpdateInviteRetired(ctx context.Context, txn *sql.Tx, roomNID types.RoomNID, targetUserNID types.EventStateKeyNID) ([]string, error) - // SelectInviteActiveForUserInRoom returns a list of sender state key NIDs - SelectInviteActiveForUserInRoom(ctx context.Context, targetUserNID types.EventStateKeyNID, roomNID types.RoomNID) ([]types.EventStateKeyNID, error) + // SelectInviteActiveForUserInRoom returns a list of sender state key NIDs and invite event IDs matching those nids. + SelectInviteActiveForUserInRoom(ctx context.Context, targetUserNID types.EventStateKeyNID, roomNID types.RoomNID) ([]types.EventStateKeyNID, []string, error) } type MembershipState int64 |