Format ktlint
This commit is contained in:
parent
87c1d69e26
commit
c0f3f394ac
@ -114,7 +114,7 @@ internal class Device @AssistedInject constructor(
|
|||||||
try {
|
try {
|
||||||
requestSender.sendVerificationRequest(result.request)
|
requestSender.sendVerificationRequest(result.request)
|
||||||
sasVerificationFactory.create(result.sas)
|
sasVerificationFactory.create(result.sas)
|
||||||
}catch (failure: Throwable){
|
} catch (failure: Throwable) {
|
||||||
innerMachine.cancelVerification(result.sas.otherUserId, result.sas.flowId, CancelCode.UserError.value)
|
innerMachine.cancelVerification(result.sas.otherUserId, result.sas.flowId, CancelCode.UserError.value)
|
||||||
null
|
null
|
||||||
}
|
}
|
||||||
|
@ -132,7 +132,12 @@ internal class RequestSender @Inject constructor(
|
|||||||
return responseAdapter.toJson(sendResponse)
|
return responseAdapter.toJson(sendResponse)
|
||||||
}
|
}
|
||||||
|
|
||||||
suspend fun sendRoomMessage(eventType: String, roomId: String, content: String, transactionId: String, retryCount: Int = DEFAULT_REQUEST_RETRY_COUNT): SendResponse {
|
suspend fun sendRoomMessage(eventType: String,
|
||||||
|
roomId: String,
|
||||||
|
content: String,
|
||||||
|
transactionId: String,
|
||||||
|
retryCount: Int = DEFAULT_REQUEST_RETRY_COUNT
|
||||||
|
): SendResponse {
|
||||||
val paramsAdapter = moshi.adapter<Content>(Map::class.java)
|
val paramsAdapter = moshi.adapter<Content>(Map::class.java)
|
||||||
val jsonContent = paramsAdapter.fromJson(content)
|
val jsonContent = paramsAdapter.fromJson(content)
|
||||||
val event = Event(eventType, transactionId, jsonContent, roomId = roomId)
|
val event = Event(eventType, transactionId, jsonContent, roomId = roomId)
|
||||||
|
@ -35,7 +35,7 @@ internal interface SendToDeviceTask : Task<SendToDeviceTask.Params, Unit> {
|
|||||||
// the transactionId. If not provided, a transactionId will be created by the task
|
// the transactionId. If not provided, a transactionId will be created by the task
|
||||||
val transactionId: String? = null,
|
val transactionId: String? = null,
|
||||||
// Number of retry before failing
|
// Number of retry before failing
|
||||||
val retryCount:Int = DEFAULT_REQUEST_RETRY_COUNT
|
val retryCount: Int = DEFAULT_REQUEST_RETRY_COUNT
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user