Skip to content

Commit c8e7ff0

Browse files
committed
chore(base): Remove the old latest event API.
1 parent 50377bf commit c8e7ff0

File tree

13 files changed

+25
-2165
lines changed

13 files changed

+25
-2165
lines changed

crates/matrix-sdk-base/src/client.rs

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -597,35 +597,14 @@ impl BaseClient {
597597
let mut context = Context::new(StateChanges::new(response.next_batch.clone()));
598598

599599
#[cfg(feature = "e2e-encryption")]
600-
let to_device = {
601-
let processors::e2ee::to_device::Output {
602-
processed_to_device_events: to_device,
603-
room_key_updates,
604-
} = processors::e2ee::to_device::from_sync_v2(
600+
let processors::e2ee::to_device::Output { processed_to_device_events: to_device, .. } =
601+
processors::e2ee::to_device::from_sync_v2(
605602
&response,
606603
olm_machine.as_ref(),
607604
&self.decryption_settings,
608605
)
609606
.await?;
610607

611-
processors::latest_event::decrypt_from_rooms(
612-
&mut context,
613-
room_key_updates
614-
.into_iter()
615-
.flatten()
616-
.filter_map(|room_key_info| self.get_room(&room_key_info.room_id))
617-
.collect(),
618-
processors::e2ee::E2EE::new(
619-
olm_machine.as_ref(),
620-
&self.decryption_settings,
621-
self.handle_verification_events,
622-
),
623-
)
624-
.await?;
625-
626-
to_device
627-
};
628-
629608
#[cfg(not(feature = "e2e-encryption"))]
630609
let to_device = response
631610
.to_device

0 commit comments

Comments
 (0)