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).
This commit is contained in:
Benjamin Bouvier
2023-09-07 14:15:22 +02:00
parent ab7ec1bc38
commit dbf9e80c8f

View File

@@ -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)}),
)