diff --git a/src/components/views/elements/AppTile.js b/src/components/views/elements/AppTile.js index df1fbe0f3c..5fe8b50b64 100644 --- a/src/components/views/elements/AppTile.js +++ b/src/components/views/elements/AppTile.js @@ -150,7 +150,7 @@ export default class AppTile extends React.Component { this.setState({initialising: false}); }); } - + _iframeRefChange = (ref) => { this.setState({iframe: ref}); if (ref) { @@ -223,7 +223,7 @@ export default class AppTile extends React.Component { * @private * @returns {Promise<*>} Resolves when the widget is terminated, or timeout passed. */ - _endWidgetActions() { + async _endWidgetActions() { // widget migration dev note: async to maintain signature // HACK: This is a really dirty way to ensure that Jitsi cleans up // its hold on the webcam. Without this, the widget holds a media // stream open, even after death. See https://github.com/vector-im/element-web/issues/7351 diff --git a/src/components/views/right_panel/WidgetCard.tsx b/src/components/views/right_panel/WidgetCard.tsx index 8efbe3dcf3..30900b9a4d 100644 --- a/src/components/views/right_panel/WidgetCard.tsx +++ b/src/components/views/right_panel/WidgetCard.tsx @@ -29,7 +29,6 @@ import defaultDispatcher from "../../../dispatcher/dispatcher"; import {SetRightPanelPhasePayload} from "../../../dispatcher/payloads/SetRightPanelPhasePayload"; import {Action} from "../../../dispatcher/actions"; import WidgetStore from "../../../stores/WidgetStore"; -import ActiveWidgetStore from "../../../stores/ActiveWidgetStore"; import {ChevronFace, ContextMenuButton, useContextMenu} from "../../structures/ContextMenu"; import IconizedContextMenu, { IconizedContextMenuOption, @@ -40,7 +39,6 @@ import AccessibleTooltipButton from "../elements/AccessibleTooltipButton"; import classNames from "classnames"; import dis from "../../../dispatcher/dispatcher"; import { WidgetMessagingStore } from "../../../stores/widgets/WidgetMessagingStore"; -import { Capability } from "matrix-widget-api/lib/interfaces/Capabilities"; import { MatrixCapabilities } from "matrix-widget-api"; interface IProps { diff --git a/src/components/views/rooms/Stickerpicker.js b/src/components/views/rooms/Stickerpicker.js index d191e05407..2faa0fea27 100644 --- a/src/components/views/rooms/Stickerpicker.js +++ b/src/components/views/rooms/Stickerpicker.js @@ -22,7 +22,6 @@ import * as sdk from '../../../index'; import dis from '../../../dispatcher/dispatcher'; import AccessibleButton from '../elements/AccessibleButton'; import WidgetUtils from '../../../utils/WidgetUtils'; -import ActiveWidgetStore from '../../../stores/ActiveWidgetStore'; import PersistedElement from "../elements/PersistedElement"; import {IntegrationManagers} from "../../../integrations/IntegrationManagers"; import SettingsStore from "../../../settings/SettingsStore"; diff --git a/src/stores/OwnProfileStore.ts b/src/stores/OwnProfileStore.ts index 61387e3c26..8983380fec 100644 --- a/src/stores/OwnProfileStore.ts +++ b/src/stores/OwnProfileStore.ts @@ -70,7 +70,7 @@ export class OwnProfileStore extends AsyncStoreWithClient { * will be returned as an HTTP URL. * @returns The HTTP URL of the user's avatar */ - public getHttpAvatarUrl(size: number = 0): string { + public getHttpAvatarUrl(size = 0): string { if (!this.avatarMxc) return null; const adjustedSize = size > 1 ? size : undefined; // don't let negatives or zero through return this.matrixClient.mxcUrlToHttp(this.avatarMxc, adjustedSize, adjustedSize); diff --git a/src/stores/widgets/StopGapWidget.ts b/src/stores/widgets/StopGapWidget.ts index 76c027bb33..1c24f70d0d 100644 --- a/src/stores/widgets/StopGapWidget.ts +++ b/src/stores/widgets/StopGapWidget.ts @@ -25,7 +25,7 @@ import { IWidgetData, MatrixCapabilities, Widget, - WidgetApiFromWidgetAction + WidgetApiFromWidgetAction, } from "matrix-widget-api"; import { StopGapWidgetDriver } from "./StopGapWidgetDriver"; import { EventEmitter } from "events";