Consume more imports from matrix-js-sdk/src/matrix (#11449)

This commit is contained in:
Michael Telatynski 2023-08-23 10:04:25 +01:00 committed by GitHub
parent aa6e3654b8
commit 99e80dd296
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
89 changed files with 236 additions and 172 deletions

View file

@ -14,8 +14,8 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
import { M_LOCATION } from "matrix-js-sdk/src/@types/location";
import {
M_LOCATION,
EventStatus,
EventType,
IEvent,

View file

@ -14,8 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
import { M_TIMESTAMP } from "matrix-js-sdk/src/@types/location";
import { Beacon } from "matrix-js-sdk/src/matrix";
import { M_TIMESTAMP, Beacon } from "matrix-js-sdk/src/matrix";
import { msUntilExpiry, sortBeaconsByLatestExpiry, sortBeaconsByLatestCreation } from "../../../src/utils/beacon";
import { makeBeaconInfoEvent } from "../../test-utils";

View file

@ -14,15 +14,15 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
import { M_TEXT } from "matrix-js-sdk/src/@types/extensible_events";
import {
M_TEXT,
ILocationContent,
LocationAssetType,
M_ASSET,
M_LOCATION,
M_TIMESTAMP,
} from "matrix-js-sdk/src/@types/location";
import { ContentHelpers } from "matrix-js-sdk/src/matrix";
ContentHelpers,
} from "matrix-js-sdk/src/matrix";
import { isSelfLocation } from "../../../src/utils/location";

View file

@ -14,9 +14,8 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
import { MatrixEvent, NotificationCountType, Room, MatrixClient } from "matrix-js-sdk/src/matrix";
import { MatrixEvent, NotificationCountType, Room, MatrixClient, ReceiptType } from "matrix-js-sdk/src/matrix";
import { Mocked, mocked } from "jest-mock";
import { ReceiptType } from "matrix-js-sdk/src/@types/read_receipts";
import {
localNotificationsAreSilenced,

View file

@ -15,8 +15,7 @@ limitations under the License.
*/
import { Mocked } from "jest-mock";
import { IIdentityServerProvider } from "matrix-js-sdk/src/@types/IIdentityServerProvider";
import { MatrixClient } from "matrix-js-sdk/src/matrix";
import { IIdentityServerProvider, MatrixClient } from "matrix-js-sdk/src/matrix";
import { DirectoryMember, ThreepidMember } from "../../src/utils/direct-messages";
import { lookupThreePids, resolveThreePids } from "../../src/utils/threepids";