From 37146da27aa10a1269a3d6cfbdef61ffe5541b82 Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Wed, 9 Apr 2025 08:47:03 +0200 Subject: [PATCH] =?UTF-8?q?chore(base):=20Rename=20`from=5Fsync=5Fv3`=20to?= =?UTF-8?q?=20`=E2=80=A6=5Fv2`.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The version of something is 3 but the sync version is 2. Confusing. --- crates/matrix-sdk-base/src/client.rs | 2 +- .../matrix-sdk-base/src/response_processors/e2ee/to_device.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/matrix-sdk-base/src/client.rs b/crates/matrix-sdk-base/src/client.rs index a6b807c9b..0eda153c6 100644 --- a/crates/matrix-sdk-base/src/client.rs +++ b/crates/matrix-sdk-base/src/client.rs @@ -858,7 +858,7 @@ impl BaseClient { let processors::e2ee::to_device::Output { decrypted_to_device_events: to_device, room_key_updates, - } = processors::e2ee::to_device::from_sync_v3( + } = processors::e2ee::to_device::from_sync_v2( &mut context, &response, olm_machine.as_ref(), diff --git a/crates/matrix-sdk-base/src/response_processors/e2ee/to_device.rs b/crates/matrix-sdk-base/src/response_processors/e2ee/to_device.rs index 852442fcd..7da337a3a 100644 --- a/crates/matrix-sdk-base/src/response_processors/e2ee/to_device.rs +++ b/crates/matrix-sdk-base/src/response_processors/e2ee/to_device.rs @@ -53,7 +53,7 @@ pub async fn from_msc4186( /// /// This returns a list of all the to-device events that were passed in but /// encrypted ones were replaced with their decrypted version. -pub async fn from_sync_v3( +pub async fn from_sync_v2( context: &mut Context, response: &v3::Response, olm_machine: Option<&OlmMachine>,