mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-08 20:09:19 +00:00
fmt
This commit is contained in:
@@ -26,9 +26,9 @@ const rule = ESLintUtils.RuleCreator(
|
|||||||
type: "problem",
|
type: "problem",
|
||||||
docs: {
|
docs: {
|
||||||
description:
|
description:
|
||||||
"Disallow calling logger.getChild() at the top level of a module." +
|
"Disallow calling logger.getChild() at the top level of a module." +
|
||||||
"`getChild` has to be called after the rageshake logger `init()`." +
|
"`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.",
|
"If it is called at the top level the child logger will never be setup for rageshakes.",
|
||||||
},
|
},
|
||||||
messages: {
|
messages: {
|
||||||
noTopLevelGetChild:
|
noTopLevelGetChild:
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ module.exports = {
|
|||||||
rules: {
|
rules: {
|
||||||
"copyright-header": require("./CopyrightHeader").default,
|
"copyright-header": require("./CopyrightHeader").default,
|
||||||
"no-observablescope-leak": require("./NoObservableScopeLeak").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,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ import { scan } from "rxjs";
|
|||||||
import { type WidgetHelpers } from "../src/widget";
|
import { type WidgetHelpers } from "../src/widget";
|
||||||
import { type LivekitRoomItem } from "../src/state/CallViewModel/CallViewModel";
|
import { type LivekitRoomItem } from "../src/state/CallViewModel/CallViewModel";
|
||||||
|
|
||||||
|
|
||||||
export const tryMakeSticky = (widget: WidgetHelpers): void => {
|
export const tryMakeSticky = (widget: WidgetHelpers): void => {
|
||||||
const logger = rootLogger.getChild("[MatrixRTCSdk]");
|
const logger = rootLogger.getChild("[MatrixRTCSdk]");
|
||||||
logger.info("try making sticky MatrixRTCSdk");
|
logger.info("try making sticky MatrixRTCSdk");
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ import { MuteStates } from "../src/state/MuteStates";
|
|||||||
import { MediaDevices } from "../src/state/MediaDevices";
|
import { MediaDevices } from "../src/state/MediaDevices";
|
||||||
import { E2eeType } from "../src/e2ee/e2eeType";
|
import { E2eeType } from "../src/e2ee/e2eeType";
|
||||||
import { currentAndPrev, TEXT_LK_TOPIC, tryMakeSticky } from "./helper";
|
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 {
|
import {
|
||||||
ElementWidgetActions,
|
ElementWidgetActions,
|
||||||
widget as _widget,
|
widget as _widget,
|
||||||
|
|||||||
@@ -94,8 +94,6 @@ declare module "react" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export interface ActiveCallProps extends Omit<
|
export interface ActiveCallProps extends Omit<
|
||||||
InCallViewProps,
|
InCallViewProps,
|
||||||
"vm" | "livekitRoom" | "connState" | "footerVm"
|
"vm" | "livekitRoom" | "connState" | "footerVm"
|
||||||
|
|||||||
Reference in New Issue
Block a user