Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix(rn) disables joinButton while navigating
tmoldovan8x8be7f2643dfe4
diff --git a/react/features/prejoin/components/Prejoin.native.tsx b/react/features/prejoin/components/Prejoin.native.tsxindex 0e2a56c69a..22655a7bc9 100644--- a/react/features/prejoin/components/Prejoin.native.tsx+++ b/react/features/prejoin/components/Prejoin.native.tsx@@ -69,6 +69,8 @@ const Prejoin: React.FC<PrejoinProps> = ({ navigation }: PrejoinProps) => {const participantName = localParticipant?.name;const [ displayName, setDisplayName ]= useState(participantName || '');+ const [ isJoining, setIsJoining ]+ = useState(false);const onChangeDisplayName = useCallback(event => {const fieldValue = getFieldValue(event);@@ -79,6 +81,7 @@ const Prejoin: React.FC<PrejoinProps> = ({ navigation }: PrejoinProps) => {}, [ displayName ]);const onJoin = useCallback(() => {+ setIsJoining(true);dispatch(connect());navigateRoot(screen.conference.root);}, [ dispatch ]);@@ -111,7 +114,7 @@ const Prejoin: React.FC<PrejoinProps> = ({ navigation }: PrejoinProps) => {}, []);const { PRIMARY, SECONDARY } = BUTTON_TYPES;- const joinButtonDisabled = !displayName && isDisplayNameMandatory;+ const joinButtonDisabled = isJoining || (!displayName && isDisplayNameMandatory);useEffect(() => {BackHandler.addEventListener('hardwareBackPress', goBack);@@ -180,6 +183,7 @@ const Prejoin: React.FC<PrejoinProps> = ({ navigation }: PrejoinProps) => {type = { PRIMARY } /><ButtonaccessibilityLabel = 'prejoin.joinMeetingInLowBandwidthMode'+ disabled = { joinButtonDisabled }labelKey = 'prejoin.joinMeetingInLowBandwidthMode'onClick = { onJoinLowBandwidth }style = { styles.prejoinButton }