forked from github/cinny
fix: show call nav status while active call is ongoing
This commit is contained in:
@@ -16,10 +16,10 @@ export function CallNavStatus() {
|
|||||||
} = useCallState();
|
} = useCallState();
|
||||||
const mx = useMatrixClient();
|
const mx = useMatrixClient();
|
||||||
const { navigateRoom } = useRoomNavigate();
|
const { navigateRoom } = useRoomNavigate();
|
||||||
|
if (!isActiveCallReady || !activeCallRoomId) return null;
|
||||||
|
|
||||||
const handleGoToCallRoom = () => {
|
const handleGoToCallRoom = () => {
|
||||||
if (activeCallRoomId) {
|
|
||||||
navigateRoom(activeCallRoomId);
|
navigateRoom(activeCallRoomId);
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user