diff options
author | Kegsay <kegan@matrix.org> | 2020-08-05 13:41:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-05 13:41:16 +0100 |
commit | 642f9cb964b20f52133e11c52e40733f7bc07320 (patch) | |
tree | e48f667d681161a9694b45cb08feded569e539b4 /keyserver/storage/tables | |
parent | 15dc1f4d0361da736339653ca8e6ba26ed103792 (diff) |
Process inbound device list updates from federation (#1240)
* Add InputDeviceListUpdate
* Unbreak unit tests
* Process inbound device list updates from federation
- Persist the keys in the keyserver and produce key changes
- Does not currently fetch keys from the remote server if the prev IDs are missing
* Linting
Diffstat (limited to 'keyserver/storage/tables')
-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 65da3310..ac932d56 100644 --- a/keyserver/storage/tables/interface.go +++ b/keyserver/storage/tables/interface.go @@ -35,6 +35,7 @@ type DeviceKeys interface { SelectDeviceKeysJSON(ctx context.Context, keys []api.DeviceMessage) error InsertDeviceKeys(ctx context.Context, txn *sql.Tx, keys []api.DeviceMessage) error 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) } |