diff --git a/eslint/NoTopLevelLoggerGetChild.js b/eslint/NoTopLevelLoggerGetChild.js index 324115d9e..3d9752c47 100644 --- a/eslint/NoTopLevelLoggerGetChild.js +++ b/eslint/NoTopLevelLoggerGetChild.js @@ -26,9 +26,9 @@ const rule = ESLintUtils.RuleCreator( type: "problem", docs: { description: - "Disallow calling logger.getChild() at the top level of a module." + - "`getChild` has to be called after the rageshake logger `init()`." + - "If it is called at the top level the child logger will never be setup for rageshakes.", + "Disallow calling logger.getChild() at the top level of a module." + + "`getChild` has to be called after the rageshake logger `init()`." + + "If it is called at the top level the child logger will never be setup for rageshakes.", }, messages: { noTopLevelGetChild: diff --git a/eslint/index.js b/eslint/index.js index 95b4d061f..1f2e7629e 100644 --- a/eslint/index.js +++ b/eslint/index.js @@ -2,6 +2,7 @@ module.exports = { rules: { "copyright-header": require("./CopyrightHeader").default, "no-observablescope-leak": require("./NoObservableScopeLeak").default, - "no-top-level-logger-get-child": require("./NoTopLevelLoggerGetChild").default, + "no-top-level-logger-get-child": require("./NoTopLevelLoggerGetChild") + .default, }, }; diff --git a/sdk/helper.ts b/sdk/helper.ts index c3f0c13c2..9f7e02a7d 100644 --- a/sdk/helper.ts +++ b/sdk/helper.ts @@ -15,7 +15,6 @@ import { scan } from "rxjs"; import { type WidgetHelpers } from "../src/widget"; import { type LivekitRoomItem } from "../src/state/CallViewModel/CallViewModel"; - export const tryMakeSticky = (widget: WidgetHelpers): void => { const logger = rootLogger.getChild("[MatrixRTCSdk]"); logger.info("try making sticky MatrixRTCSdk"); diff --git a/sdk/main.ts b/sdk/main.ts index 6e558fc94..a001af65c 100644 --- a/sdk/main.ts +++ b/sdk/main.ts @@ -53,7 +53,7 @@ import { MuteStates } from "../src/state/MuteStates"; import { MediaDevices } from "../src/state/MediaDevices"; import { E2eeType } from "../src/e2ee/e2eeType"; import { currentAndPrev, TEXT_LK_TOPIC, tryMakeSticky } from "./helper"; -import {logger as rootLogger} from "matrix-js-sdk/lib/logger" +import { logger as rootLogger } from "matrix-js-sdk/lib/logger"; import { ElementWidgetActions, widget as _widget, diff --git a/src/room/InCallView.tsx b/src/room/InCallView.tsx index 8982226ab..bf5918724 100644 --- a/src/room/InCallView.tsx +++ b/src/room/InCallView.tsx @@ -94,8 +94,6 @@ declare module "react" { } } - - export interface ActiveCallProps extends Omit< InCallViewProps, "vm" | "livekitRoom" | "connState" | "footerVm"