Skip to content

Commit

Permalink
fix: hide flying emoji for hls viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
raviteja83 authored Sep 1, 2023
1 parent f5fdde2 commit 9caa96e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/roomkit-react/src/Prebuilt/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import { FlyingEmoji } from './plugins/FlyingEmoji';
// @ts-ignore: No implicit Any
import { RemoteStopScreenshare } from './plugins/RemoteStopScreenshare';
import {
useRoomLayoutConferencingScreen,
useRoomLayoutLeaveScreen,
useRoomLayoutPreviewScreen,
} from './provider/roomLayoutProvider/hooks/useRoomLayoutScreen';
Expand Down Expand Up @@ -340,13 +341,14 @@ const Router = ({ children }: { children: ReactElement }) => {

function AppRoutes({ authTokenByRoomCodeEndpoint }: { authTokenByRoomCodeEndpoint: string }) {
const roomLayout = useRoomLayout();
const { screenType } = useRoomLayoutConferencingScreen();
return (
<Router>
<>
<ToastContainer />
<Notifications />
<BackSwipe />
<FlyingEmoji />
{screenType !== 'hls_live_streaming' && <FlyingEmoji />}
<RemoteStopScreenshare />
<KeyboardHandler />
<BeamSpeakerLabelsLogging />
Expand Down

0 comments on commit 9caa96e

Please sign in to comment.