From 7ff1a11a2b0ab8e52f315802282f557e74c887b9 Mon Sep 17 00:00:00 2001 From: Florian Duros Date: Wed, 6 Nov 2024 16:15:44 +0100 Subject: [PATCH] Update `ICreateClientOpts.cryptoStore` doc --- src/client.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/client.ts b/src/client.ts index ec7457ed38c..058f6516337 100644 --- a/src/client.ts +++ b/src/client.ts @@ -292,6 +292,11 @@ export interface ICreateClientOpts { * {@link setCryptoStoreFactory} if unspecified; or if no factory has been * specified, uses a default implementation (indexeddb in the browser, * in-memory otherwise). + * + * This is only used for the legacy crypto implementation (as used by {@link MatrixClient#initCrypto}), + * but if you use the rust crypto implementation ({@link MatrixClient#initRustCrypto}) and the device + * previously used legacy crypto (so must be migrated), then this must still be provided, so that the + * data can be migrated from the legacy store. */ cryptoStore?: CryptoStore; @@ -1269,6 +1274,7 @@ export class MatrixClient extends TypedEventEmitter; errorTs?: number } } = {}; protected notifTimelineSet: EventTimelineSet | null = null; + /* @deprecated */ protected cryptoStore?: CryptoStore; protected verificationMethods?: string[]; protected fallbackICEServerAllowed = false;