fix cryptoApi import change

This commit is contained in:
Timo
2025-02-27 12:31:48 +01:00
parent 3f35eeebe5
commit 141d02a4fd

View File

@@ -9,10 +9,10 @@ import { type ComponentProps, useCallback, useEffect, useState } from "react";
import { logger } from "matrix-js-sdk/src/logger"; import { logger } from "matrix-js-sdk/src/logger";
import { import {
ClientEvent, ClientEvent,
type Crypto,
type MatrixClient, type MatrixClient,
type MatrixEvent, type MatrixEvent,
} from "matrix-js-sdk/src/matrix"; } from "matrix-js-sdk/src/matrix";
import { type CryptoApi } from "matrix-js-sdk/src/crypto-api";
import { getLogsForReport } from "./rageshake"; import { getLogsForReport } from "./rageshake";
import { useClient } from "../ClientContext"; import { useClient } from "../ClientContext";
@@ -34,7 +34,7 @@ const gzip = async (text: string): Promise<Blob> => {
* Collects crypto related information. * Collects crypto related information.
*/ */
async function collectCryptoInfo( async function collectCryptoInfo(
cryptoApi: Crypto.CryptoApi, cryptoApi: CryptoApi,
body: FormData, body: FormData,
): Promise<void> { ): Promise<void> {
body.append("crypto_version", cryptoApi.getVersion()); body.append("crypto_version", cryptoApi.getVersion());
@@ -82,7 +82,7 @@ async function collectCryptoInfo(
*/ */
async function collectRecoveryInfo( async function collectRecoveryInfo(
client: MatrixClient, client: MatrixClient,
cryptoApi: Crypto.CryptoApi, cryptoApi: CryptoApi,
body: FormData, body: FormData,
): Promise<void> { ): Promise<void> {
const secretStorage = client.secretStorage; const secretStorage = client.secretStorage;