KeysBackupState

enum KeysBackupState : Enum<KeysBackupState>

E2e keys backup states.

    |
    V        deleteKeyBackupVersion (on current backup)
+---------------------->  UNKNOWN  <-------------
|                            |
|                            | checkAndStartKeysBackup (at startup or on new verified device or a new detected backup)
|                            V
|                     CHECKING BACKUP
|                            |
|    Network error           |
+<----------+----------------+-------> DISABLED <----------------------+
|           |                |            |                            |
|           |                |            | createKeysBackupVersion    |
|           V                |            V                            |
+<---  WRONG VERSION         |         ENABLING                        |
    |       ^                |            |                            |
    |       |                V       ok   |     error                  |
    |       |     +------> READY <--------+----------------------------+
    V       |     |          |
NOT TRUSTED  |     |          | on new key
    |     |          V
    |     |     WILL BACK UP (waiting a random duration)
    |     |          |
    |     |          |
    |     | ok       V
    |     +----- BACKING UP
    |                |
    |      Error     |
    +<---------------+

Entries

Link copied to clipboard

Need to check the current backup version on the homeserver.

Link copied to clipboard

Checking if backup is enabled on homeserver.

Link copied to clipboard

Backup has been stopped because a new backup version has been detected on the homeserver.

Link copied to clipboard

Backup from this device is not enabled.

Link copied to clipboard

There is a backup available on the homeserver but it is not trusted. It is not trusted because the signature is invalid or the device that created it is not verified. Use KeysBackup.getKeysBackupTrust() to get trust details. Consequently, the backup from this device is not enabled.

Link copied to clipboard

Backup is being enabled: the backup version is being created on the homeserver.

Link copied to clipboard

Backup is enabled and ready to send backup to the homeserver.

Link copied to clipboard

e2e keys are going to be sent to the homeserver.

Link copied to clipboard

e2e keys are being sent to the homeserver.

Properties

Link copied to clipboard
val name: String
Link copied to clipboard
val ordinal: Int