mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-08 16:20:28 +03:00
update imports and dependency array
This commit is contained in:
parent
67fbf949b0
commit
a81492c5b2
1 changed files with 13 additions and 3 deletions
|
|
@ -4,8 +4,11 @@ import React, { useContext, useMemo } from 'react';
|
|||
import { useCallback, useEffect, useRef } from 'react';
|
||||
import { Box } from 'folds';
|
||||
import { RoomViewHeader } from './RoomViewHeader';
|
||||
import { useCallState } from '../../pages/client/CallProvider';
|
||||
import { PrimaryRefContext, BackupRefContext } from '../../pages/call/PersistentCallContainer';
|
||||
import { useCallState } from '../../pages/client/call/CallProvider';
|
||||
import {
|
||||
PrimaryRefContext,
|
||||
BackupRefContext,
|
||||
} from '../../pages/client/call/PersistentCallContainer';
|
||||
import { ScreenSize, useScreenSizeContext } from '../../hooks/useScreenSize';
|
||||
|
||||
function debounce<F extends (...args: any[]) => any>(func: F, waitFor: number) {
|
||||
|
|
@ -125,7 +128,14 @@ export function CallView({ room, eventId }: { room: Room; eventId?: string }) {
|
|||
originalIframeStylesRef.current = null;
|
||||
};
|
||||
}
|
||||
}, [activeIframeDisplayRef, applyFixedPositioningToIframe, debouncedApplyFixedPositioning, isPrimaryIframe, isViewingActiveCall, room]);
|
||||
}, [
|
||||
activeIframeDisplayRef,
|
||||
applyFixedPositioningToIframe,
|
||||
debouncedApplyFixedPositioning,
|
||||
isPrimaryIframe,
|
||||
isViewingActiveCall,
|
||||
room,
|
||||
]);
|
||||
|
||||
const isCallViewVisible = room.isCallRoom();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue