Ensure BackupState and RecoveryState values are set from the SDK only when the first sync is finished.

This commit is contained in:
Benoit Marty 2023-11-08 11:33:02 +01:00
parent b57fddf19c
commit 348da6bec2
5 changed files with 60 additions and 5 deletions

View file

@ -17,6 +17,14 @@
package io.element.android.libraries.matrix.api.encryption
enum class BackupState {
/**
* Special value, when the SDK is waiting for the first sync to be done.
*/
WAITING_FOR_SYNC,
/**
* Values mapped from the SDK.
*/
UNKNOWN,
CREATING,
ENABLING,

View file

@ -17,6 +17,14 @@
package io.element.android.libraries.matrix.api.encryption
enum class RecoveryState {
/**
* Special value, when the SDK is waiting for the first sync to be done.
*/
WAITING_FOR_SYNC,
/**
* Values mapped from the SDK.
*/
UNKNOWN,
ENABLED,
DISABLED,