mirror of
https://github.com/vector-im/element-call.git
synced 2024-11-15 00:04:59 +08:00
Don't reload the page
This commit is contained in:
parent
a268a804bb
commit
f33170f5f4
@ -42,7 +42,13 @@ export function GroupCallLoader({
|
||||
const groupCallState = useLoadGroupCall(client, roomIdOrAlias, viaServers);
|
||||
|
||||
const history = useHistory();
|
||||
const onHomeClick = useCallback(() => history.push("/"), [history]);
|
||||
const onHomeClick = useCallback(
|
||||
(ev: Event) => {
|
||||
ev.preventDefault();
|
||||
history.push("/");
|
||||
},
|
||||
[history]
|
||||
);
|
||||
|
||||
switch (groupCallState.kind) {
|
||||
case "loading":
|
||||
|
Loading…
Reference in New Issue
Block a user