forked from GitHub-Mirror/riotX-android
lastFailureMessage is val, not var
This commit is contained in:
parent
e149ee53de
commit
829e8da8dc
@ -48,7 +48,7 @@ internal class UploadContentWorker(context: Context, params: WorkerParameters) :
|
||||
val event: Event,
|
||||
val attachment: ContentAttachmentData,
|
||||
val isRoomEncrypted: Boolean,
|
||||
override var lastFailureMessage: String? = null
|
||||
override val lastFailureMessage: String? = null
|
||||
) : SessionWorkerParams
|
||||
|
||||
@Inject lateinit var fileUploader: FileUploader
|
||||
|
@ -32,7 +32,7 @@ internal class GetGroupDataWorker(context: Context, params: WorkerParameters) :
|
||||
internal data class Params(
|
||||
override val userId: String,
|
||||
val groupIds: List<String>,
|
||||
override var lastFailureMessage: String? = null
|
||||
override val lastFailureMessage: String? = null
|
||||
) : SessionWorkerParams
|
||||
|
||||
@Inject lateinit var getGroupDataTask: GetGroupDataTask
|
||||
|
@ -40,7 +40,7 @@ internal class SendRelationWorker(context: Context, params: WorkerParameters) :
|
||||
val roomId: String,
|
||||
val event: Event,
|
||||
val relationType: String? = null,
|
||||
override var lastFailureMessage: String?
|
||||
override val lastFailureMessage: String?
|
||||
) : SessionWorkerParams
|
||||
|
||||
@Inject lateinit var roomAPI: RoomAPI
|
||||
|
@ -42,7 +42,7 @@ internal class EncryptEventWorker(context: Context, params: WorkerParameters)
|
||||
val event: Event,
|
||||
/**Do not encrypt these keys, keep them as is in encrypted content (e.g. m.relates_to)*/
|
||||
val keepKeys: List<String>? = null,
|
||||
override var lastFailureMessage: String? = null
|
||||
override val lastFailureMessage: String? = null
|
||||
) : SessionWorkerParams
|
||||
|
||||
@Inject lateinit var crypto: CryptoService
|
||||
|
@ -36,7 +36,7 @@ internal class RedactEventWorker(context: Context, params: WorkerParameters) : C
|
||||
val roomId: String,
|
||||
val eventId: String,
|
||||
val reason: String?,
|
||||
override var lastFailureMessage: String? = null
|
||||
override val lastFailureMessage: String? = null
|
||||
) : SessionWorkerParams
|
||||
|
||||
@Inject lateinit var roomAPI: RoomAPI
|
||||
|
@ -39,7 +39,7 @@ internal class SendEventWorker constructor(context: Context, params: WorkerParam
|
||||
override val userId: String,
|
||||
val roomId: String,
|
||||
val event: Event,
|
||||
override var lastFailureMessage: String? = null
|
||||
override val lastFailureMessage: String? = null
|
||||
) : SessionWorkerParams
|
||||
|
||||
@Inject lateinit var localEchoUpdater: LocalEchoUpdater
|
||||
|
@ -20,5 +20,5 @@ interface SessionWorkerParams {
|
||||
val userId: String
|
||||
|
||||
// Null is no error occurs. When chaining Workers, first step is to check that there is no lastFailureMessage from the previous workers
|
||||
var lastFailureMessage: String?
|
||||
val lastFailureMessage: String?
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user