diff --git a/src/sentry.ts b/src/sentry.ts index c454fed7ed..c70201679c 100644 --- a/src/sentry.ts +++ b/src/sentry.ts @@ -8,7 +8,6 @@ Please see LICENSE files in the repository root for full details. import * as Sentry from "@sentry/browser"; import { MatrixClient } from "matrix-js-sdk/src/matrix"; -import { type Integration } from "@sentry/types/build/types/integration"; import SdkConfig from "./SdkConfig"; import { MatrixClientPeg } from "./MatrixClientPeg"; @@ -196,7 +195,7 @@ export function setSentryUser(mxid: string): void { export async function initSentry(sentryConfig: IConfigOptions["sentry"]): Promise { if (!sentryConfig) return; // Only enable Integrations.GlobalHandlers, which hooks uncaught exceptions, if automaticErrorReporting is true - const integrations: Integration[] = [ + const integrations = [ Sentry.inboundFiltersIntegration(), Sentry.functionToStringIntegration(), Sentry.breadcrumbsIntegration(), diff --git a/test/test-utils/poll.ts b/test/test-utils/poll.ts index 4f20403fb2..276730c2ff 100644 --- a/test/test-utils/poll.ts +++ b/test/test-utils/poll.ts @@ -18,7 +18,7 @@ import { M_POLL_RESPONSE, M_TEXT, } from "matrix-js-sdk/src/matrix"; -import { uuid4 } from "@sentry/utils"; +import { randomString } from "matrix-js-sdk/src/randomstring"; import { flushPromises } from "./utilities"; @@ -67,7 +67,7 @@ export const makePollEndEvent = ( id?: string, ): MatrixEvent => { return new MatrixEvent({ - event_id: id || uuid4(), + event_id: id || randomString(16), room_id: roomId, origin_server_ts: ts, type: M_POLL_END.name, @@ -91,7 +91,7 @@ export const makePollResponseEvent = ( ts = 0, ): MatrixEvent => new MatrixEvent({ - event_id: uuid4(), + event_id: randomString(16), room_id: roomId, origin_server_ts: ts, type: M_POLL_RESPONSE.name,