From 486369e97c9879514fcc795eee017f80c5ee3322 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Mon, 31 May 2021 22:48:25 -0600 Subject: [PATCH] Clean up "base-apis" find&replace --- src/crypto/CrossSigning.js | 2 +- src/crypto/algorithms/base.js | 4 ++-- src/crypto/index.js | 2 +- src/crypto/olmlib.js | 4 ++-- src/crypto/verification/Base.js | 5 +++-- 5 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/crypto/CrossSigning.js b/src/crypto/CrossSigning.js index 2143f0c75..00788917e 100644 --- a/src/crypto/CrossSigning.js +++ b/src/crypto/CrossSigning.js @@ -725,7 +725,7 @@ export function createCryptoStoreCacheCallbacks(store, olmdevice) { /** * Request cross-signing keys from another device during verification. * - * @param {module:base-apis~MatrixBaseApis} baseApis base Matrix API interface + * @param {MatrixClient} baseApis base Matrix API interface * @param {string} userId The user ID being verified * @param {string} deviceId The device ID being verified */ diff --git a/src/crypto/algorithms/base.js b/src/crypto/algorithms/base.js index b9125761c..87b8a82c0 100644 --- a/src/crypto/algorithms/base.js +++ b/src/crypto/algorithms/base.js @@ -46,7 +46,7 @@ export const DECRYPTION_CLASSES = {}; * @param {string} params.deviceId The identifier for this device. * @param {module:crypto} params.crypto crypto core * @param {module:crypto/OlmDevice} params.olmDevice olm.js wrapper - * @param {module:base-apis~MatrixBaseApis} baseApis base matrix api interface + * @param {MatrixClient} baseApis base matrix api interface * @param {string} params.roomId The ID of the room we will be sending to * @param {object} params.config The body of the m.room.encryption event */ @@ -102,7 +102,7 @@ export class EncryptionAlgorithm { * @param {string} params.userId The UserID for the local user * @param {module:crypto} params.crypto crypto core * @param {module:crypto/OlmDevice} params.olmDevice olm.js wrapper - * @param {module:base-apis~MatrixBaseApis} baseApis base matrix api interface + * @param {MatrixClient} baseApis base matrix api interface * @param {string=} params.roomId The ID of the room we will be receiving * from. Null for to-device events. */ diff --git a/src/crypto/index.js b/src/crypto/index.js index ae8de2af1..6bce27ef4 100644 --- a/src/crypto/index.js +++ b/src/crypto/index.js @@ -97,7 +97,7 @@ const KEY_BACKUP_KEYS_PER_REQUEST = 200; * * @internal * - * @param {module:base-apis~MatrixBaseApis} baseApis base matrix api interface + * @param {MatrixClient} baseApis base matrix api interface * * @param {module:store/session/webstorage~WebStorageSessionStore} sessionStore * Store to be used for end-to-end crypto session data diff --git a/src/crypto/olmlib.js b/src/crypto/olmlib.js index 5be11040b..74120d643 100644 --- a/src/crypto/olmlib.js +++ b/src/crypto/olmlib.js @@ -118,7 +118,7 @@ export async function encryptMessageForDevice( * * @param {module:crypto/OlmDevice} olmDevice * - * @param {module:base-apis~MatrixBaseApis} baseApis + * @param {MatrixClient} baseApis * * @param {object} devicesByUser * map from userid to list of devices to ensure sessions for @@ -168,7 +168,7 @@ export async function getExistingOlmSessions( * * @param {module:crypto/OlmDevice} olmDevice * - * @param {module:base-apis~MatrixBaseApis} baseApis + * @param {MatrixClient} baseApis * * @param {object} devicesByUser * map from userid to list of devices to ensure sessions for diff --git a/src/crypto/verification/Base.js b/src/crypto/verification/Base.js index fd23668ac..929654cf9 100644 --- a/src/crypto/verification/Base.js +++ b/src/crypto/verification/Base.js @@ -49,9 +49,10 @@ export class VerificationBase extends EventEmitter { * * @class * - * @param {module:base-apis~Channel} channel the verification channel to send verification messages over. + * TODO: Channel types + * @param {Channel} channel the verification channel to send verification messages over. * - * @param {module:base-apis~MatrixBaseApis} baseApis base matrix api interface + * @param {MatrixClient} baseApis base matrix api interface * * @param {string} userId the user ID that is being verified *