matrix-react-sdk
Version:
SDK for matrix.org using React
19 lines (18 loc) • 671 B
TypeScript
export declare function tryPersistStorage(): void;
export declare function checkConsistency(): Promise<{
healthy: boolean;
cryptoInited: boolean;
dataInCryptoStore: boolean;
dataInLocalStorage: boolean;
}>;
/**
* Sets whether crypto has ever been successfully
* initialised on this client.
* StorageManager uses this to determine whether indexeddb
* has been wiped by the browser: this flag is saved to localStorage
* and if it is true and not crypto data is found, an error is
* presented to the user.
*
* @param {boolean} cryptoInited True if crypto has been set up
*/
export declare function setCryptoInitialised(cryptoInited: boolean): void;