Private
algorithmPrivate
Readonly
baseReadonly
getPrivate
sendingPrivate
sessionCheck the server for an active key backup and if one is present and has a valid signature from one of the user's verified devices, start backing up to it.
Forces a re-check of the key backup and enables/disables it as appropriate.
Object with backup info (as returned by getKeyBackupVersion) in backupInfo and trust information (as returned by isKeyBackupTrusted) in trustInfo.
Marks all group sessions as needing to be backed up without scheduling them to upload in the background.
Resolves to the number of sessions now requiring a backup (which will be equal to the number of sessions in the store).
Check if the given backup info is trusted.
{ usable: [bool], // is the backup trusted, true iff there is a sig that is valid & from a trusted device sigs: [ valid: [bool || null], // true: valid, false: invalid, null: cannot attempt validation deviceId: [string], device: [DeviceInfo || null], ] }
Optional
backupInfo: IKeyBackupInfokey backup info dict from /room_keys/version
Optional
key: null | string | Uint8ArrayOptional
algorithm: stringAttempts to retrieve a session from a key backup, if enough time has elapsed since the last check for this session id.
Static
checkPerforms a quick check to ensure that the backup info looks sane.
Throws an error if a problem is detected.
the key backup info
Static
makeGenerated using TypeDoc
Manages the key backup.