Skip to content

Commit 6966a52

Browse files
committed
reorganize
1 parent a105f1d commit 6966a52

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/react-native-sdk/src/components/Call/CallContent/CallContent.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export const CallContent = ({
120120
layout = 'grid',
121121
landscape = false,
122122
supportedReactions,
123-
initialInCallManagerAudioMode,
123+
initialInCallManagerAudioMode = 'video',
124124
iOSPiPIncludeLocalParticipantVideo,
125125
disablePictureInPicture,
126126
}: CallContentProps) => {
@@ -141,8 +141,6 @@ export const CallContent = ({
141141

142142
useAutoEnterPiPEffect(disablePictureInPicture);
143143

144-
const incallManagerModeRef = useRef(initialInCallManagerAudioMode);
145-
146144
const _remoteParticipants = useRemoteParticipants();
147145
const remoteParticipants = useDebouncedValue(_remoteParticipants, 300); // we debounce the remote participants to avoid unnecessary rerenders that happen when participant tracks are all subscribed simultaneously
148146
const localParticipant = useLocalParticipant();
@@ -189,6 +187,7 @@ export const CallContent = ({
189187
/**
190188
* This hook is used to handle IncallManager specs of the application.
191189
*/
190+
const incallManagerModeRef = useRef(initialInCallManagerAudioMode);
192191
useEffect(() => {
193192
const prevInCallManager = getRNInCallManagerLibNoThrow();
194193
if (prevInCallManager) {

0 commit comments

Comments
 (0)