Fixed login bug again
This commit is contained in:
parent
6bb0f0dd0a
commit
0d214de5ed
21 changed files with 1142 additions and 1147 deletions
|
|
@ -6,7 +6,7 @@ export const context = createContext<contextType | undefined>(undefined);
|
|||
|
||||
export default function Provider(props: { children: React.ReactNode }) {
|
||||
const navigate = useNavigate();
|
||||
|
||||
|
||||
const [state, setState] = useState<"closed" | "connecting" | "open">(
|
||||
"closed",
|
||||
);
|
||||
|
|
@ -33,14 +33,14 @@ export default function Provider(props: { children: React.ReactNode }) {
|
|||
// Utils
|
||||
function joinCall(userId: number, callId?: string) {
|
||||
// get/generate e2ee secret
|
||||
// go into convs and find call id
|
||||
// generate shared secret and decrypt enc call secret
|
||||
|
||||
// go into convs and find call id
|
||||
// generate shared secret and decrypt enc call secret
|
||||
|
||||
// check if user is already in call
|
||||
|
||||
|
||||
// connect to call
|
||||
connect("", "");
|
||||
|
||||
|
||||
// navigate to call page
|
||||
navigate({ to: "/call", search: { userId: userId, callId: callId } });
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue