Format ktlint

This commit is contained in:
ganfra 2022-06-09 11:14:49 +02:00
parent 87c1d69e26
commit c0f3f394ac
3 changed files with 8 additions and 3 deletions

View File

@ -114,7 +114,7 @@ internal class Device @AssistedInject constructor(
try {
requestSender.sendVerificationRequest(result.request)
sasVerificationFactory.create(result.sas)
}catch (failure: Throwable){
} catch (failure: Throwable) {
innerMachine.cancelVerification(result.sas.otherUserId, result.sas.flowId, CancelCode.UserError.value)
null
}

View File

@ -132,7 +132,12 @@ internal class RequestSender @Inject constructor(
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 jsonContent = paramsAdapter.fromJson(content)
val event = Event(eventType, transactionId, jsonContent, roomId = roomId)

View File

@ -35,7 +35,7 @@ internal interface SendToDeviceTask : Task<SendToDeviceTask.Params, Unit> {
// the transactionId. If not provided, a transactionId will be created by the task
val transactionId: String? = null,
// Number of retry before failing
val retryCount:Int = DEFAULT_REQUEST_RETRY_COUNT
val retryCount: Int = DEFAULT_REQUEST_RETRY_COUNT
)
}