diff options
author | Kegsay <kegan@matrix.org> | 2020-08-12 22:43:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-12 22:43:02 +0100 |
commit | 820c56c165ec8f0409d23cd151a7ff89fbe09ffa (patch) | |
tree | 2266b281e13fc971d56625f416d1e03979062c43 /keyserver/storage/tables/interface.go | |
parent | d98ec12422c8498cf710bb34d2ed31f024aa1e15 (diff) |
Fix more E2E sytests (#1265)
* WIP: Eagerly sync device lists on /user/keys/query requests
Also notify servers when a user's device display name changes. Few
caveats:
- sytest `Device deletion propagates over federation` fails
- `populateResponseWithDeviceKeysFromDatabase` is called from multiple
goroutines and hence is unsafe.
* Handle deleted devices correctly over federation
Diffstat (limited to 'keyserver/storage/tables/interface.go')
-rw-r--r-- | keyserver/storage/tables/interface.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/keyserver/storage/tables/interface.go b/keyserver/storage/tables/interface.go index a4d5dede..f97e871f 100644 --- a/keyserver/storage/tables/interface.go +++ b/keyserver/storage/tables/interface.go @@ -38,6 +38,7 @@ type DeviceKeys interface { SelectMaxStreamIDForUser(ctx context.Context, txn *sql.Tx, userID string) (streamID int32, err error) CountStreamIDsForUser(ctx context.Context, userID string, streamIDs []int64) (int, error) SelectBatchDeviceKeys(ctx context.Context, userID string, deviceIDs []string) ([]api.DeviceMessage, error) + DeleteAllDeviceKeys(ctx context.Context, txn *sql.Tx, userID string) error } type KeyChanges interface { |