Remove feature_many_integration_managers
Rationale: If we want this feature, design will do it properly.
This commit is contained in:
parent
aa664b88a4
commit
2aec197354
13 changed files with 16 additions and 358 deletions
|
@ -19,7 +19,6 @@ import { logger } from "matrix-js-sdk/src/logger";
|
|||
import { ClientEvent, MatrixClient } from "matrix-js-sdk/src/client";
|
||||
|
||||
import type { MatrixEvent } from "matrix-js-sdk/src/models/event";
|
||||
import type { Room } from "matrix-js-sdk/src/models/room";
|
||||
import SdkConfig from '../SdkConfig';
|
||||
import Modal from '../Modal';
|
||||
import { IntegrationManagerInstance, Kind } from "./IntegrationManagerInstance";
|
||||
|
@ -27,13 +26,7 @@ import IntegrationsImpossibleDialog from "../components/views/dialogs/Integratio
|
|||
import IntegrationsDisabledDialog from "../components/views/dialogs/IntegrationsDisabledDialog";
|
||||
import WidgetUtils from "../utils/WidgetUtils";
|
||||
import { MatrixClientPeg } from "../MatrixClientPeg";
|
||||
import SettingsStore from "../settings/SettingsStore";
|
||||
import { compare } from "../utils/strings";
|
||||
import defaultDispatcher from "../dispatcher/dispatcher";
|
||||
import {
|
||||
OpenTabbedIntegrationManagerDialogPayload,
|
||||
} from "../dispatcher/payloads/OpenTabbedIntegrationManagerDialogPayload";
|
||||
import { Action } from "../dispatcher/actions";
|
||||
|
||||
const KIND_PREFERENCE = [
|
||||
// Ordered: first is most preferred, last is least preferred.
|
||||
|
@ -181,23 +174,6 @@ export class IntegrationManagers {
|
|||
Modal.createTrackedDialog('Integrations impossible', '', IntegrationsImpossibleDialog);
|
||||
}
|
||||
|
||||
openAll(room: Room = null, screen: string = null, integrationId: string = null): void {
|
||||
if (!SettingsStore.getValue("integrationProvisioning")) {
|
||||
return this.showDisabledDialog();
|
||||
}
|
||||
|
||||
if (this.managers.length === 0) {
|
||||
return this.openNoManagerDialog();
|
||||
}
|
||||
|
||||
defaultDispatcher.dispatch(<OpenTabbedIntegrationManagerDialogPayload>{
|
||||
action: Action.OpenTabbedIntegrationManagerDialog,
|
||||
room,
|
||||
screen,
|
||||
integrationId,
|
||||
});
|
||||
}
|
||||
|
||||
showDisabledDialog(): void {
|
||||
Modal.createTrackedDialog('Integrations disabled', '', IntegrationsDisabledDialog);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue