RestoreCryptoStateUseCaseImpl

internal class RestoreCryptoStateUseCaseImpl(downloadCryptoState: DownloadCryptoStateUseCase, extractCryptoState: ExtractCryptoStateUseCase, setLastDeviceId: SetLastDeviceIdUseCase, applyCryptoState: ApplyCryptoStateUseCase, clientRepository: ClientRepository, upgradeCurrentSession: UpgradeCurrentSessionUseCase) : RestoreCryptoStateUseCase

Constructors

Link copied to clipboard
constructor(downloadCryptoState: DownloadCryptoStateUseCase, extractCryptoState: ExtractCryptoStateUseCase, setLastDeviceId: SetLastDeviceIdUseCase, applyCryptoState: ApplyCryptoStateUseCase, clientRepository: ClientRepository, upgradeCurrentSession: UpgradeCurrentSessionUseCase)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open suspend operator override fun invoke(): RestoreCryptoStateResult

Executes the restore flow for the crypto state backup. This includes downloading the backup, validating it, and restoring the crypto state.