Upgrade to rust sdk 0.1.71 (#1905)
https://github.com/matrix-org/matrix-rust-components-kotlin/releases/tag/sdk-v0.1.71 There are breaking changes as specified in: https://github.com/vector-im/element-x-android/issues/1898 plus the one related to the poll history feature.
This commit is contained in:
parent
f186a85ed0
commit
6ea26dd6c4
19 changed files with 91 additions and 75 deletions
|
|
@ -140,8 +140,7 @@ private fun BackupUploadState.isBackingUp(): Boolean {
|
|||
return when (this) {
|
||||
BackupUploadState.Unknown,
|
||||
BackupUploadState.Waiting,
|
||||
is BackupUploadState.Uploading,
|
||||
is BackupUploadState.CheckingIfUploadNeeded -> true
|
||||
is BackupUploadState.Uploading -> true
|
||||
is BackupUploadState.SteadyException -> exception is SteadyStateException.Connection
|
||||
BackupUploadState.Done,
|
||||
BackupUploadState.Error -> false
|
||||
|
|
|
|||
|
|
@ -129,11 +129,11 @@ class SecureBackupSetupPresenter @AssistedInject constructor(
|
|||
encryptionService.enableRecoveryProgressStateFlow.collect { enableRecoveryProgress ->
|
||||
Timber.tag(loggerTagSetup.value).d("New enableRecoveryProgress: ${enableRecoveryProgress.javaClass.simpleName}")
|
||||
when (enableRecoveryProgress) {
|
||||
EnableRecoveryProgress.Unknown,
|
||||
is EnableRecoveryProgress.Starting,
|
||||
is EnableRecoveryProgress.CreatingBackup,
|
||||
is EnableRecoveryProgress.CreatingRecoveryKey,
|
||||
is EnableRecoveryProgress.BackingUp,
|
||||
EnableRecoveryProgress.CreatingBackup,
|
||||
EnableRecoveryProgress.CreatingRecoveryKey ->
|
||||
Unit
|
||||
is EnableRecoveryProgress.RoomKeyUploadError -> Unit
|
||||
is EnableRecoveryProgress.Done ->
|
||||
stateAndDispatch.dispatchAction(SecureBackupSetupStateMachine.Event.SdkHasCreatedKey(enableRecoveryProgress.recoveryKey))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue