From 3f48a954d82552a1449c80ed06a13407f779c456 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> Date: Fri, 19 May 2023 13:43:16 +0100 Subject: [PATCH] Move crypto classes into a separate namespace (#3385) * Move crypto classes into a separate namespace * Add in re-exports for backwards compatibility * Update src/matrix.ts --- src/client.ts | 4 ++-- src/crypto-api.ts | 4 ++-- src/crypto/index.ts | 12 ++++++------ src/matrix.ts | 24 ++++++++++++++++++++++-- src/models/device.ts | 2 +- 5 files changed, 33 insertions(+), 13 deletions(-) diff --git a/src/client.ts b/src/client.ts index 20bb09351..820b36386 100644 --- a/src/client.ts +++ b/src/client.ts @@ -2577,7 +2577,7 @@ export class MatrixClient extends TypedEventEmitter new MemoryCryptoStore(); /** diff --git a/src/models/device.ts b/src/models/device.ts index 6f63e2e06..0a451fd5a 100644 --- a/src/models/device.ts +++ b/src/models/device.ts @@ -27,7 +27,7 @@ export type DeviceMap = Map>; type DeviceParameters = Pick & Partial; /** - * Information on a user's device, as returned by {@link CryptoApi.getUserDeviceInfo}. + * Information on a user's device, as returned by {@link Crypto.CryptoApi.getUserDeviceInfo}. */ export class Device { /** id of the device */