mirror of
https://github.com/nextcloud/talk-android
synced 2025-01-18 21:18:15 +00:00
ktlintFormat
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
parent
9068a42f10
commit
298cf3a249
@ -11,5 +11,5 @@ import io.reactivex.Observable
|
||||
|
||||
interface OpenConversationsRepository {
|
||||
|
||||
fun fetchConversations(searchTerm:String): Observable<List<Conversation>>
|
||||
fun fetchConversations(searchTerm: String): Observable<List<Conversation>>
|
||||
}
|
||||
|
@ -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<List<Conversation>> {
|
||||
override fun fetchConversations(searchTerm: String): Observable<List<Conversation>> {
|
||||
val roomOverall = ncApi.getOpenConversations(
|
||||
credentials,
|
||||
ApiUtils.getUrlForOpenConversations(apiVersion, currentUser.baseUrl!!),
|
||||
|
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user