Skip to content

Commit

Permalink
Remove Customisations in "InviteDialog"
Browse files Browse the repository at this point in the history
Add customComponent lifecycle hook to Invite dialog
  • Loading branch information
John Tore Simonsen committed Oct 14, 2024
1 parent 9ba91bd commit 8911792
Show file tree
Hide file tree
Showing 3 changed files with 115 additions and 550 deletions.
29 changes: 0 additions & 29 deletions src/components/structures/MatrixChat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -945,35 +945,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

0 comments on commit 8911792

Please sign in to comment.