Block users from joining call links
This commit is contained in:
parent
71ae6ea93a
commit
4ae563cc95
9 changed files with 137 additions and 5 deletions
|
@ -68,6 +68,7 @@ const createProps = (overrideProps: Partial<PropsType> = {}): PropsType => ({
|
|||
onCopyCallLink: action('on-copy-call-link'),
|
||||
onShareCallLinkViaSignal: action('on-share-call-link-via-signal'),
|
||||
removeClient: overrideProps.removeClient || action('remove-client'),
|
||||
blockClient: overrideProps.blockClient || action('block-client'),
|
||||
showContactModal: action('show-contact-modal'),
|
||||
});
|
||||
|
||||
|
@ -140,3 +141,35 @@ export function Overflow(): JSX.Element {
|
|||
});
|
||||
return <CallingAdhocCallInfo {...props} />;
|
||||
}
|
||||
|
||||
export function AsAdmin(): JSX.Element {
|
||||
const props = createProps({
|
||||
participants: [
|
||||
createParticipant({
|
||||
title: 'Son Goku',
|
||||
}),
|
||||
createParticipant({
|
||||
hasRemoteAudio: true,
|
||||
hasRemoteVideo: true,
|
||||
presenting: true,
|
||||
name: 'Rage Trunks',
|
||||
title: 'Rage Trunks',
|
||||
}),
|
||||
createParticipant({
|
||||
hasRemoteAudio: true,
|
||||
title: 'Prince Vegeta',
|
||||
}),
|
||||
createParticipant({
|
||||
hasRemoteAudio: true,
|
||||
hasRemoteVideo: true,
|
||||
name: 'Goku',
|
||||
title: 'Goku',
|
||||
}),
|
||||
createParticipant({
|
||||
title: 'Someone With A Really Long Name',
|
||||
}),
|
||||
],
|
||||
isCallLinkAdmin: true,
|
||||
});
|
||||
return <CallingAdhocCallInfo {...props} />;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue