diff --git a/bindings/matrix-sdk-ffi/src/room_list.rs b/bindings/matrix-sdk-ffi/src/room_list.rs index 3ad4a4f37..c2cc11dac 100644 --- a/bindings/matrix-sdk-ffi/src/room_list.rs +++ b/bindings/matrix-sdk-ffi/src/room_list.rs @@ -14,13 +14,14 @@ use crate::{ timeline::EventTimelineItem, TaskHandle, RUNTIME, }; + #[uniffi::export] impl Client { - /// Get a new `RoomList` instance. + /// Get a new `RoomListService` instance. /// /// In this case, it is the user's responsibility to create an /// `EncryptionSync` that runs in the background too. - pub fn room_list(&self) -> Result, RoomListError> { + pub fn room_list_service(&self) -> Result, RoomListError> { Ok(Arc::new(RoomListService { inner: Arc::new( RUNTIME @@ -32,10 +33,10 @@ impl Client { })) } - /// Get a new `RoomList` instance with encryption enabled. + /// Get a new `RoomListService` instance with encryption enabled. /// /// In this case, no instance of `EncryptionSync` must exist. - pub fn room_list_with_encryption(&self) -> Result, RoomListError> { + pub fn room_list_service_with_encryption(&self) -> Result, RoomListError> { Ok(Arc::new(RoomListService { inner: Arc::new( RUNTIME