mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-25 02:45:53 +03:00
Rename CreateRoomParamsInternalBuilder to CreateRoomBodyBuilder for clarity
This commit is contained in:
parent
e097bd8117
commit
a456f4c6a5
2 changed files with 3 additions and 3 deletions
|
@ -34,7 +34,7 @@ import im.vector.matrix.android.internal.session.room.membership.threepid.ThreeP
|
|||
import java.security.InvalidParameterException
|
||||
import javax.inject.Inject
|
||||
|
||||
internal class CreateRoomParamsInternalBuilder @Inject constructor(
|
||||
internal class CreateRoomBodyBuilder @Inject constructor(
|
||||
private val ensureIdentityTokenTask: EnsureIdentityTokenTask,
|
||||
private val crossSigningService: CrossSigningService,
|
||||
private val deviceListManager: DeviceListManager,
|
|
@ -48,12 +48,12 @@ internal class DefaultCreateRoomTask @Inject constructor(
|
|||
private val readMarkersTask: SetReadMarkersTask,
|
||||
@SessionDatabase
|
||||
private val realmConfiguration: RealmConfiguration,
|
||||
private val createRoomParamsInternalBuilder: CreateRoomParamsInternalBuilder,
|
||||
private val createRoomBodyBuilder: CreateRoomBodyBuilder,
|
||||
private val eventBus: EventBus
|
||||
) : CreateRoomTask {
|
||||
|
||||
override suspend fun execute(params: CreateRoomParams): String {
|
||||
val createRoomParams = createRoomParamsInternalBuilder.build(params)
|
||||
val createRoomParams = createRoomBodyBuilder.build(params)
|
||||
|
||||
val createRoomResponse = executeRequest<CreateRoomResponse>(eventBus) {
|
||||
apiCall = roomAPI.createRoom(createRoomParams)
|
||||
|
|
Loading…
Reference in a new issue