Switch to importing models/{event-timeline{,set},user,device,event-status} from main js-sdk export (#11368)

This commit is contained in:
Michael Telatynski 2023-08-08 08:16:04 +01:00 committed by GitHub
parent b08bdf7e0d
commit 368b6b9355
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
40 changed files with 106 additions and 73 deletions

View file

@ -27,6 +27,7 @@ import {
EventType,
CryptoApi,
DeviceVerificationStatus,
Device,
} from "matrix-js-sdk/src/matrix";
import {
Phase,
@ -34,7 +35,6 @@ import {
VerificationRequestEvent,
} from "matrix-js-sdk/src/crypto/verification/request/VerificationRequest";
import { UserTrustLevel } from "matrix-js-sdk/src/crypto/CrossSigning";
import { Device } from "matrix-js-sdk/src/models/device";
import { defer } from "matrix-js-sdk/src/utils";
import { EventEmitter } from "events";

View file

@ -16,7 +16,7 @@ limitations under the License.
import { act, render, waitFor } from "@testing-library/react";
import React, { ComponentProps } from "react";
import { User } from "matrix-js-sdk/src/models/user";
import { User, TypedEventEmitter, Device, MatrixClient } from "matrix-js-sdk/src/matrix";
import { mocked, Mocked } from "jest-mock";
import {
EmojiMapping,
@ -28,7 +28,6 @@ import {
VerifierEvent,
VerifierEventHandlerMap,
} from "matrix-js-sdk/src/crypto-api/verification";
import { TypedEventEmitter, Device, MatrixClient } from "matrix-js-sdk/src/matrix";
import VerificationPanel from "../../../../src/components/views/right_panel/VerificationPanel";
import { flushPromises, stubClient } from "../../../test-utils";