add setConversationReadOnly

must have been lost during resolving merge conflicts

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2024-11-21 11:18:36 +01:00
parent ebfb38b5b5
commit e8cf3eed56
No known key found for this signature in database
GPG Key ID: C793F8B59F43CE7B

View File

@ -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)