Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Customisations in "InviteDialog" #97

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 1 addition & 34 deletions src/components/structures/MatrixChat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,9 @@ import { logger } from "matrix-js-sdk/src/logger";
import { throttle } from "lodash";
import { CryptoEvent } from "matrix-js-sdk/src/crypto";
import { IKeyBackupInfo } from "matrix-js-sdk/src/crypto/keybackup";

// what-input helps improve keyboard accessibility
import "what-input";
import {
CustomComponentLifecycle,
CustomComponentOpts,
} from "@matrix-org/react-sdk-module-api/lib/lifecycles/CustomComponentLifecycle";

import type NewRecoveryMethodDialog from "../../async-components/views/dialogs/security/NewRecoveryMethodDialog";
import type RecoveryMethodRemovedDialog from "../../async-components/views/dialogs/security/RecoveryMethodRemovedDialog";
import PosthogTrackers from "../../PosthogTrackers";
Expand Down Expand Up @@ -945,35 +941,6 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
true,
);
break;
// VERJI
case Action.OpenInviteExternalUsersDialog: {
const customOnboardingOpts = { CustomComponent: React.Fragment };
ModuleRunner.instance.invoke(
CustomComponentLifecycle.OnboardingDialog,
customOnboardingOpts as CustomComponentOpts,
);
const Props = (props: any): React.JSX.Element => <div>{props}</div>;
const customOnboardingDialog = (props: any): React.JSX.Element => (
<customOnboardingOpts.CustomComponent>
<Props props={props} />
</customOnboardingOpts.CustomComponent>
);
console.log("[Verji.Onboarding - Action.OpenInviteExternalUsers]", payload.data);
Modal.createDialog(
customOnboardingDialog,
{
initialText: payload.initialText,
data: payload?.data,
onFinished: () => {
Modal.toggleCurrentDialogVisibility();
},
},
"mx_RoomDirectory_dialogWrapper",
false,
true,
);
}
// END VERJI
}
};

Expand Down
Loading