mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-06 23:30:28 +03:00
swap call status to be bound to call state and not active call id
This commit is contained in:
parent
e688c19350
commit
dabe7f7849
1 changed files with 2 additions and 2 deletions
|
|
@ -20,7 +20,7 @@ type CallNavStatusProps = {
|
|||
space: Room | null;
|
||||
};
|
||||
export function CallNavStatus({ space }: CallNavStatusProps) {
|
||||
const { activeCallRoomId, isAudioEnabled, isVideoEnabled, toggleAudio, toggleVideo, hangUp } =
|
||||
const { activeCallRoomId, isAudioEnabled, isVideoEnabled, isCallActive, toggleAudio, toggleVideo, hangUp } =
|
||||
useCallState();
|
||||
const mx = useMatrixClient();
|
||||
const { navigateRoom } = useRoomNavigate();
|
||||
|
|
@ -30,7 +30,7 @@ export function CallNavStatus({ space }: CallNavStatusProps) {
|
|||
navigateRoom(activeCallRoomId);
|
||||
}
|
||||
};
|
||||
if (!activeCallRoomId) {
|
||||
if (!isCallActive) {
|
||||
return (
|
||||
<Box
|
||||
direction="Column"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue