diff --git a/sample-apps/react-native/dogfood/src/screens/LiveStream/ViewLiveStream.tsx b/sample-apps/react-native/dogfood/src/screens/LiveStream/ViewLiveStream.tsx index d84c1b8ebd..dff7021038 100644 --- a/sample-apps/react-native/dogfood/src/screens/LiveStream/ViewLiveStream.tsx +++ b/sample-apps/react-native/dogfood/src/screens/LiveStream/ViewLiveStream.tsx @@ -89,9 +89,8 @@ export const ViewLiveStreamChilden = ({ const { params: { callId }, } = route; - const { useIsCallBroadcastingInProgress } = useCallStateHooks(); - const isCallBroadcasting = useIsCallBroadcastingInProgress(); - const liveOrBroadcasting = isCallBroadcasting; + const { useIsCallLive } = useCallStateHooks(); + const isCallLive = useIsCallLive(); const client = useAnonymousInitVideoClient({ callId, @@ -120,14 +119,14 @@ export const ViewLiveStreamChilden = ({ return ( <> - {(!autoJoin || !liveOrBroadcasting) && ( + {(!autoJoin || !isCallLive) && ( )} - {liveOrBroadcasting && autoJoin && ( + {isCallLive && autoJoin && (