Don't reload the page

This commit is contained in:
David Baker 2023-09-19 18:29:09 +01:00
parent a268a804bb
commit f33170f5f4

View File

@ -42,7 +42,13 @@ export function GroupCallLoader({
const groupCallState = useLoadGroupCall(client, roomIdOrAlias, viaServers); const groupCallState = useLoadGroupCall(client, roomIdOrAlias, viaServers);
const history = useHistory(); const history = useHistory();
const onHomeClick = useCallback(() => history.push("/"), [history]); const onHomeClick = useCallback(
(ev: Event) => {
ev.preventDefault();
history.push("/");
},
[history]
);
switch (groupCallState.kind) { switch (groupCallState.kind) {
case "loading": case "loading":