@@ -20,9 +20,11 @@ use std::ops::Deref;
2020
2121#[ cfg( feature = "e2e-encryption" ) ]
2222use matrix_sdk_common:: deserialized_responses:: TimelineEvent ;
23- pub use ruma:: api:: client:: sync:: sync_events:: v5 as http;
2423use ruma:: {
25- api:: client:: sync:: sync_events:: v3:: { self , InvitedRoom , KnockedRoom } ,
24+ api:: client:: sync:: sync_events:: {
25+ v3:: { self , InvitedRoom , KnockedRoom } ,
26+ v5 as http,
27+ } ,
2628 events:: {
2729 room:: member:: MembershipState , AnyRoomAccountDataEvent , AnyStrippedStateEvent ,
2830 AnySyncStateEvent ,
@@ -31,7 +33,7 @@ use ruma::{
3133 JsOption , OwnedRoomId , RoomId , UserId ,
3234} ;
3335#[ cfg( feature = "e2e-encryption" ) ]
34- use ruma:: { api :: client :: sync :: sync_events :: v5 , events:: AnyToDeviceEvent , events:: StateEventType } ;
36+ use ruma:: { events:: AnyToDeviceEvent , events:: StateEventType } ;
3537use tracing:: { instrument, trace, warn} ;
3638
3739use super :: BaseClient ;
@@ -65,8 +67,8 @@ impl BaseClient {
6567 /// Returns whether any change happened.
6668 pub async fn process_sliding_sync_e2ee (
6769 & self ,
68- to_device : Option < & v5 :: response:: ToDevice > ,
69- e2ee : & v5 :: response:: E2EE ,
70+ to_device : Option < & http :: response:: ToDevice > ,
71+ e2ee : & http :: response:: E2EE ,
7072 ) -> Result < Option < Vec < Raw < AnyToDeviceEvent > > > > {
7173 if to_device. is_none ( ) && e2ee. is_empty ( ) {
7274 return Ok ( None ) ;
0 commit comments