Switch to importing more things from the main js-sdk export (#11376)

This commit is contained in:
Michael Telatynski 2023-08-09 16:10:54 +01:00 committed by GitHub
parent e6c127915f
commit a1328d8ef7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
49 changed files with 100 additions and 75 deletions

View file

@ -28,8 +28,8 @@ import {
NotificationCountType,
Room,
RoomEvent,
Relations,
} from "matrix-js-sdk/src/matrix";
import { Relations } from "matrix-js-sdk/src/models/relations";
import { Thread, ThreadEvent } from "matrix-js-sdk/src/models/thread";
import { logger } from "matrix-js-sdk/src/logger";
import { CallErrorCode } from "matrix-js-sdk/src/webrtc/call";

View file

@ -16,8 +16,7 @@ limitations under the License.
*/
import React from "react";
import { MatrixEvent, EventType, RelationType } from "matrix-js-sdk/src/matrix";
import { Relations } from "matrix-js-sdk/src/models/relations";
import { MatrixEvent, EventType, RelationType, Relations } from "matrix-js-sdk/src/matrix";
import dis from "../../../dispatcher/dispatcher";
import { Action } from "../../../dispatcher/actions";

View file

@ -15,8 +15,15 @@ limitations under the License.
*/
import React, { ChangeEvent, ReactNode } from "react";
import { Room, RoomMember, EventType, RoomType, IJoinRuleEventContent, JoinRule } from "matrix-js-sdk/src/matrix";
import { MatrixError } from "matrix-js-sdk/src/http-api";
import {
Room,
RoomMember,
EventType,
RoomType,
IJoinRuleEventContent,
JoinRule,
MatrixError,
} from "matrix-js-sdk/src/matrix";
import classNames from "classnames";
import { RoomPreviewOpts, RoomViewLifecycle } from "@matrix-org/react-sdk-module-api/lib/lifecycles/RoomViewLifecycle";