diff options
author | Till <2353100+S7evinK@users.noreply.github.com> | 2022-09-20 11:32:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-20 11:32:03 +0200 |
commit | e007b8038f677b6578a65cfe2cbd8a7192ae69b0 (patch) | |
tree | 27157dc3e229c2a2b6fcf190d4d94a1a0ba17621 /syncapi/internal | |
parent | 47af4bff5b930c86630c7879e14f5b07b9d08497 (diff) |
Mark device list as stale, if we don't have the requesting device (#2728)
This hopefully makes E2EE chats a little bit more reliable by re-syncing
devices if we don't have the `requesting_device_id` in our database. (As
seen in
[Synapse](https://github.com/matrix-org/synapse/blob/c52abc1cfdd9e5480cdb4a03d626fe61cacc6573/synapse/handlers/devicemessage.py#L157-L201))
Diffstat (limited to 'syncapi/internal')
-rw-r--r-- | syncapi/internal/keychange_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/syncapi/internal/keychange_test.go b/syncapi/internal/keychange_test.go index 80d2811b..3b9c8221 100644 --- a/syncapi/internal/keychange_test.go +++ b/syncapi/internal/keychange_test.go @@ -22,6 +22,10 @@ var ( type mockKeyAPI struct{} +func (k *mockKeyAPI) PerformMarkAsStaleIfNeeded(ctx context.Context, req *keyapi.PerformMarkAsStaleRequest, res *struct{}) error { + return nil +} + func (k *mockKeyAPI) PerformUploadKeys(ctx context.Context, req *keyapi.PerformUploadKeysRequest, res *keyapi.PerformUploadKeysResponse) error { return nil } |