mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-15 02:38:59 +03:00
Format ktlint
This commit is contained in:
parent
87c1d69e26
commit
c0f3f394ac
3 changed files with 8 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue