From 8fc29aed7d3eefed1ca9c959ccf79e9fbaf4223e Mon Sep 17 00:00:00 2001 From: Florian Duros Date: Tue, 28 Jan 2025 14:26:45 +0100 Subject: [PATCH] feat(legacy crypto!): remove `ICreateClientOpts.deviceToImport`. `ICreateClientOpts.deviceToImport` was used in the legacy cryto. The rust crypto doesn't support to import devices in this way. --- src/client.ts | 33 +-------------------------------- 1 file changed, 1 insertion(+), 32 deletions(-) diff --git a/src/client.ts b/src/client.ts index ab9bb39551..f5c043ed76 100644 --- a/src/client.ts +++ b/src/client.ts @@ -223,11 +223,6 @@ export const UNSTABLE_MSC3852_LAST_SEEN_UA = new UnstableValue( "org.matrix.msc3852.last_seen_user_agent", ); -interface IExportedDevice { - userId: string; - deviceId: string; -} - export interface IKeysUploadResponse { one_time_key_counts: { // eslint-disable-line camelcase @@ -335,15 +330,6 @@ export interface ICreateClientOpts { */ queryParams?: Record; - /** - * Device data exported with - * "exportDevice" method that must be imported to recreate this device. - * Should only be useful for devices with end-to-end crypto enabled. - * If provided, deviceId and userId should **NOT** be provided at the top - * level (they are present in the exported data). - */ - deviceToImport?: IExportedDevice; - /** * Encryption key used for encrypting sensitive data (such as e2ee keys) in {@link ICreateClientOpts#cryptoStore}. * @@ -1288,24 +1274,7 @@ export class MatrixClient extends TypedEventEmitter