diff --git a/src/stores/widgets/StopGapWidgetDriver.ts b/src/stores/widgets/StopGapWidgetDriver.ts index b6e2f6c681..2535f205fc 100644 --- a/src/stores/widgets/StopGapWidgetDriver.ts +++ b/src/stores/widgets/StopGapWidgetDriver.ts @@ -116,8 +116,6 @@ export class StopGapWidgetDriver extends WidgetDriver { } public async askOpenID(observer: SimpleObservable) { - const isUserWidget = this.forWidgetKind !== WidgetKind.Room; // modal and account widgets are "user" widgets - const rawUrl = this.forWidget.templateUrl; const oidcState = WidgetPermissionStore.instance.getOIDCState( this.forWidget, this.forWidgetKind, this.inRoomId, ); diff --git a/src/stores/widgets/WidgetPermissionStore.ts b/src/stores/widgets/WidgetPermissionStore.ts index c2c30911c9..41e8bc6652 100644 --- a/src/stores/widgets/WidgetPermissionStore.ts +++ b/src/stores/widgets/WidgetPermissionStore.ts @@ -14,14 +14,9 @@ * limitations under the License. */ -import { AsyncStore } from "../AsyncStore"; -import { ActionPayload } from "../../dispatcher/payloads"; -import defaultDispatcher from "../../dispatcher/dispatcher"; import SettingsStore from "../../settings/SettingsStore"; -import { AsyncStoreWithClient } from "../AsyncStoreWithClient"; -import { IWidget, Widget, WidgetKind } from "matrix-widget-api"; +import { Widget, WidgetKind } from "matrix-widget-api"; import { MatrixClientPeg } from "../../MatrixClientPeg"; -import WidgetUtils from "../../utils/WidgetUtils"; import { SettingLevel } from "../../settings/SettingLevel"; export enum OIDCState {