Skip to content

Commit

Permalink
Merge branch 'dev' into WEB-2812-ui-start-stop-transcription
Browse files Browse the repository at this point in the history
  • Loading branch information
amar-1995 committed May 22, 2024
2 parents d0572f5 + a1af640 commit ff5c45a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/roomkit-react/src/Prebuilt/common/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,8 @@ export function useWaitingRoomInfo(): WaitingRoomInfo {
const { video, audio, screen } = useHMSStore(selectIsAllowedToPublish);
const roles = useHMSStore(selectRolesMap);
const peersByRoles = useHMSStore(selectPeersByRoles(localPeerRole?.subscribeParams.subscribeToRoles || []));
const isNotAllowedToPublish = video && audio && screen;
const isScreenOnlyPublishParams: boolean = screen;
const isNotAllowedToPublish = !(video || audio || screen);
const isScreenOnlyPublishParams: boolean = screen && !(video || audio);
const hasSubscribedRolePublishing: boolean = useMemo(() => {
return peersByRoles.some((peer: HMSPeer) => {
if (peer.roleName && roles[peer.roleName] && !peer.isLocal) {
Expand Down

0 comments on commit ff5c45a

Please sign in to comment.