From 9eadbc302fe3e1f91a09fc410d85ea0de7b4d7c0 Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Thu, 22 Jun 2023 17:08:30 +0200 Subject: [PATCH] feat(ffi): Rename `Client::room_list` to `Client::room_list_service`. --- bindings/matrix-sdk-ffi/src/room_list.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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