From 298cf3a249cf150f76230a4113d4ac452dd1c45a Mon Sep 17 00:00:00 2001 From: sowjanyakch Date: Thu, 19 Dec 2024 15:35:43 +0100 Subject: [PATCH] ktlintFormat Signed-off-by: sowjanyakch --- .../talk/openconversations/data/OpenConversationsRepository.kt | 2 +- .../openconversations/data/OpenConversationsRepositoryImpl.kt | 2 +- .../openconversations/viewmodels/OpenConversationsViewModel.kt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/nextcloud/talk/openconversations/data/OpenConversationsRepository.kt b/app/src/main/java/com/nextcloud/talk/openconversations/data/OpenConversationsRepository.kt index 149edbc34..884282326 100644 --- a/app/src/main/java/com/nextcloud/talk/openconversations/data/OpenConversationsRepository.kt +++ b/app/src/main/java/com/nextcloud/talk/openconversations/data/OpenConversationsRepository.kt @@ -11,5 +11,5 @@ import io.reactivex.Observable interface OpenConversationsRepository { - fun fetchConversations(searchTerm:String): Observable> + fun fetchConversations(searchTerm: String): Observable> } diff --git a/app/src/main/java/com/nextcloud/talk/openconversations/data/OpenConversationsRepositoryImpl.kt b/app/src/main/java/com/nextcloud/talk/openconversations/data/OpenConversationsRepositoryImpl.kt index 0eff93bf3..6bfdddbe7 100644 --- a/app/src/main/java/com/nextcloud/talk/openconversations/data/OpenConversationsRepositoryImpl.kt +++ b/app/src/main/java/com/nextcloud/talk/openconversations/data/OpenConversationsRepositoryImpl.kt @@ -21,7 +21,7 @@ class OpenConversationsRepositoryImpl(private val ncApi: NcApi, currentUserProvi val apiVersion = ApiUtils.getConversationApiVersion(currentUser, intArrayOf(ApiUtils.API_V4, ApiUtils.API_V3, 1)) - override fun fetchConversations(searchTerm:String): Observable> { + override fun fetchConversations(searchTerm: String): Observable> { val roomOverall = ncApi.getOpenConversations( credentials, ApiUtils.getUrlForOpenConversations(apiVersion, currentUser.baseUrl!!), diff --git a/app/src/main/java/com/nextcloud/talk/openconversations/viewmodels/OpenConversationsViewModel.kt b/app/src/main/java/com/nextcloud/talk/openconversations/viewmodels/OpenConversationsViewModel.kt index 8a5fc436e..92501de8b 100644 --- a/app/src/main/java/com/nextcloud/talk/openconversations/viewmodels/OpenConversationsViewModel.kt +++ b/app/src/main/java/com/nextcloud/talk/openconversations/viewmodels/OpenConversationsViewModel.kt @@ -38,7 +38,7 @@ class OpenConversationsViewModel @Inject constructor(private val repository: Ope fun fetchConversations() { _viewState.value = FetchConversationsStartState - repository.fetchConversations(_searchTerm.value?: "") + repository.fetchConversations(_searchTerm.value ?: "") .subscribeOn(Schedulers.io()) ?.observeOn(AndroidSchedulers.mainThread()) ?.subscribe(FetchConversationsObserver())