Use the more correct name 'roomIdOrAlias'
This commit is contained in:
@@ -468,7 +468,7 @@ export function InCallView({
|
|||||||
)}
|
)}
|
||||||
{inviteModalState.isOpen && (
|
{inviteModalState.isOpen && (
|
||||||
<InviteModal
|
<InviteModal
|
||||||
roomAlias={
|
roomIdOrAlias={
|
||||||
groupCall.room.getCanonicalAlias() ?? groupCall.room.roomId
|
groupCall.room.getCanonicalAlias() ?? groupCall.room.roomId
|
||||||
}
|
}
|
||||||
{...inviteModalProps}
|
{...inviteModalProps}
|
||||||
|
|||||||
@@ -23,10 +23,10 @@ import { getRoomUrl } from "../matrix-utils";
|
|||||||
import styles from "./InviteModal.module.css";
|
import styles from "./InviteModal.module.css";
|
||||||
|
|
||||||
interface Props extends Omit<ModalProps, "title" | "children"> {
|
interface Props extends Omit<ModalProps, "title" | "children"> {
|
||||||
roomAlias: string;
|
roomIdOrAlias: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const InviteModal: FC<Props> = ({ roomAlias, ...rest }) => {
|
export const InviteModal: FC<Props> = ({ roomIdOrAlias, ...rest }) => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -40,7 +40,7 @@ export const InviteModal: FC<Props> = ({ roomAlias, ...rest }) => {
|
|||||||
<p>{t("Copy and share this call link")}</p>
|
<p>{t("Copy and share this call link")}</p>
|
||||||
<CopyButton
|
<CopyButton
|
||||||
className={styles.copyButton}
|
className={styles.copyButton}
|
||||||
value={getRoomUrl(roomAlias)}
|
value={getRoomUrl(roomIdOrAlias)}
|
||||||
data-testid="modal_inviteLink"
|
data-testid="modal_inviteLink"
|
||||||
/>
|
/>
|
||||||
</ModalContent>
|
</ModalContent>
|
||||||
|
|||||||
Reference in New Issue
Block a user