From dbf9e80c8f0e2eb33597d29f5a0c29844a035f41 Mon Sep 17 00:00:00 2001 From: Benjamin Bouvier Date: Thu, 7 Sep 2023 14:15:22 +0200 Subject: [PATCH] encryption sync: disable the shared pos in the encryption sync It is racy and would require a cross-process lock held during the whole flow (from creating the request to processing the response). --- crates/matrix-sdk-ui/src/encryption_sync_service.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/matrix-sdk-ui/src/encryption_sync_service.rs b/crates/matrix-sdk-ui/src/encryption_sync_service.rs index 0dbc5de2a..56e2051d6 100644 --- a/crates/matrix-sdk-ui/src/encryption_sync_service.rs +++ b/crates/matrix-sdk-ui/src/encryption_sync_service.rs @@ -102,7 +102,7 @@ impl EncryptionSyncService { let mut builder = client .sliding_sync("encryption") .map_err(Error::SlidingSync)? - .share_pos() + //.share_pos() // TODO(bnjbvr) This is racy, needs cross-process lock :') .with_to_device_extension( assign!(v4::ToDeviceConfig::default(), { enabled: Some(true)}), )