@@ -17,7 +17,7 @@ limitations under the License.
1717*/
1818
1919import { logger } from "matrix-js-sdk/src/logger" ;
20- import { Method , MatrixClient , CryptoApi } from "matrix-js-sdk/src/matrix" ;
20+ import { Method , MatrixClient , Crypto } from "matrix-js-sdk/src/matrix" ;
2121
2222import type * as Pako from "pako" ;
2323import { MatrixClientPeg } from "../MatrixClientPeg" ;
@@ -177,7 +177,7 @@ async function collectSynapseSpecific(client: MatrixClient, body: FormData): Pro
177177/**
178178 * Collects crypto related information.
179179 */
180- async function collectCryptoInfo ( cryptoApi : CryptoApi , body : FormData ) : Promise < void > {
180+ async function collectCryptoInfo ( cryptoApi : Crypto . CryptoApi , body : FormData ) : Promise < void > {
181181 body . append ( "crypto_version" , cryptoApi . getVersion ( ) ) ;
182182
183183 const ownDeviceKeys = await cryptoApi . getOwnDeviceKeys ( ) ;
@@ -206,7 +206,7 @@ async function collectCryptoInfo(cryptoApi: CryptoApi, body: FormData): Promise<
206206/**
207207 * Collects information about secret storage and backup.
208208 */
209- async function collectRecoveryInfo ( client : MatrixClient , cryptoApi : CryptoApi , body : FormData ) : Promise < void > {
209+ async function collectRecoveryInfo ( client : MatrixClient , cryptoApi : Crypto . CryptoApi , body : FormData ) : Promise < void > {
210210 const secretStorage = client . secretStorage ;
211211 body . append ( "secret_storage_ready" , String ( await cryptoApi . isSecretStorageReady ( ) ) ) ;
212212 body . append ( "secret_storage_key_in_account" , String ( await secretStorage . hasKey ( ) ) ) ;
0 commit comments