mirror of
https://github.com/nextcloud/talk-android
synced 2025-02-07 15:13:01 +00:00
add setConversationReadOnly
must have been lost during resolving merge conflicts Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
ebfb38b5b5
commit
e8cf3eed56
@ -75,6 +75,10 @@ class ConversationsRepositoryImpl(
|
||||
return coroutineApi.unarchiveConversation(credentials, url)
|
||||
}
|
||||
|
||||
override fun setConversationReadOnly(credentials: String, url: String, state: Int): Observable<GenericOverall> {
|
||||
return api.setConversationReadOnly(credentials, url, state)
|
||||
}
|
||||
|
||||
override suspend fun setConversationReadOnly(roomToken: String, state: Int): GenericOverall {
|
||||
val apiVersion = ApiUtils.getConversationApiVersion(user, intArrayOf(ApiUtils.API_V4, ApiUtils.API_V1))
|
||||
val url = ApiUtils.getUrlForConversationReadOnly(apiVersion, user.baseUrl!!, roomToken)
|
||||
|
Loading…
Reference in New Issue
Block a user