Make sure we know the session verification state before showing the option to verify the session. #5521
This commit is contained in:
parent
32b1856dbd
commit
ff67c8beef
9 changed files with 228 additions and 60 deletions
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
package io.element.android.libraries.matrix.api.encryption
|
||||
|
||||
import io.element.android.libraries.architecture.AsyncData
|
||||
import io.element.android.libraries.matrix.api.core.UserId
|
||||
import io.element.android.libraries.matrix.api.encryption.identity.IdentityState
|
||||
import kotlinx.coroutines.flow.Flow
|
||||
|
|
@ -17,7 +18,7 @@ interface EncryptionService {
|
|||
val recoveryStateStateFlow: StateFlow<RecoveryState>
|
||||
val enableRecoveryProgressStateFlow: StateFlow<EnableRecoveryProgress>
|
||||
val isLastDevice: StateFlow<Boolean>
|
||||
val hasDevicesToVerifyAgainst: StateFlow<Boolean>
|
||||
val hasDevicesToVerifyAgainst: StateFlow<AsyncData<Boolean>>
|
||||
|
||||
suspend fun enableBackups(): Result<Unit>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue