mirror of
https://github.com/vector-im/element-call.git
synced 2026-07-18 18:59:23 +00:00
fix cryptoApi import change
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user