Skip to content

Commit

Permalink
Merge branch 'dev' into WEB-2830-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KaustubhKumar05 authored May 22, 2024
2 parents dd5f52c + a1af640 commit 67668fc
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 67668fc

Please sign in to comment.