Skip to content

Commit

Permalink
add setConversationReadOnly
Browse files Browse the repository at this point in the history
must have been lost during resolving merge conflicts

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
  • Loading branch information
mahibi committed Nov 21, 2024
1 parent ebfb38b commit e8cf3ee
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e8cf3ee

Please sign in to comment.