aboutsummaryrefslogtreecommitdiff
path: root/syncapi
diff options
context:
space:
mode:
authorKegsay <kegan@matrix.org>2020-08-05 13:41:16 +0100
committerGitHub <noreply@github.com>2020-08-05 13:41:16 +0100
commit642f9cb964b20f52133e11c52e40733f7bc07320 (patch)
treee48f667d681161a9694b45cb08feded569e539b4 /syncapi
parent15dc1f4d0361da736339653ca8e6ba26ed103792 (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 'syncapi')
-rw-r--r--syncapi/internal/keychange_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/syncapi/internal/keychange_test.go b/syncapi/internal/keychange_test.go
index cc33c738..6765fa65 100644
--- a/syncapi/internal/keychange_test.go
+++ b/syncapi/internal/keychange_test.go
@@ -45,6 +45,9 @@ func (k *mockKeyAPI) QueryOneTimeKeys(ctx context.Context, req *keyapi.QueryOneT
func (k *mockKeyAPI) QueryDeviceMessages(ctx context.Context, req *keyapi.QueryDeviceMessagesRequest, res *keyapi.QueryDeviceMessagesResponse) {
}
+func (k *mockKeyAPI) InputDeviceListUpdate(ctx context.Context, req *keyapi.InputDeviceListUpdateRequest, res *keyapi.InputDeviceListUpdateResponse) {
+
+}
type mockCurrentStateAPI struct {
roomIDToJoinedMembers map[string][]string