snapshot of https://github.com/jitsi/jitsi-meet.git @ fd1749dd28f4138aa80234fc7f311b19aaffa0e7 (2026-09-15)
Some checks failed
Prosody Plugin Tests / test (push) Failing after 10m11s
Close stale issues and PRs / stale (push) Failing after 1s

This commit is contained in:
upstream-mirror
2026-09-15 15:56:32 +05:00
commit 1d2bfcac0c
3159 changed files with 464524 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
import React, { useCallback } from 'react';
import { useDispatch } from 'react-redux';
import ConfirmDialog from '../../../base/dialog/components/native/ConfirmDialog';
import { cancelLogin, login, redirectToDefaultLocation } from '../../actions.native';
/**
* Dialog shown when the app returns to the foreground while an external token
* authentication (started by opening {@code tokenAuthUrl} in the system
* browser) was not completed. It warns the user that they are not connected
* to the meeting and offers to either retry the login or leave.
*
* @returns {JSX.Element}
*/
export default function LoginRetryDialog(): JSX.Element {
const dispatch = useDispatch();
const handleSubmit = useCallback(() => {
dispatch(login());
return true; // close dialog
}, [ dispatch ]);
const handleCancel = useCallback(() => {
dispatch(cancelLogin());
// cancelLogin() only navigates away when the connection is still
// parked on passwordRequired; on WebSocket deployments that state is
// reset by the subsequent connection-dropped failure, so leave the
// dead conference screen explicitly.
dispatch(redirectToDefaultLocation());
return true; // close dialog
}, [ dispatch ]);
return (
<ConfirmDialog
cancelLabel = 'toolbar.leaveConference'
confirmLabel = 'dialog.login'
descriptionKey = 'dialog.loginNotCompleted'
onCancel = { handleCancel }
onSubmit = { handleSubmit } />
);
}