@naviedu/room-platform-react 0.0.36 → 0.0.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.esm.js +3 -2
  2. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -16795,6 +16795,7 @@ function RoomParticipantActions(param) {
16795
16795
  var resolvedParticipantIdentity = participantIdentity !== null && participantIdentity !== void 0 ? participantIdentity : mappedPresence === null || mappedPresence === void 0 ? void 0 : mappedPresence.participantIdentity;
16796
16796
  var resolvedIsLocal = (_ref = isLocal !== null && isLocal !== void 0 ? isLocal : mappedPresence === null || mappedPresence === void 0 ? void 0 : mappedPresence.isLocal) !== null && _ref !== void 0 ? _ref : false;
16797
16797
  var resolvedIsOnline = isOnline !== null && isOnline !== void 0 ? isOnline : Boolean(mappedPresence);
16798
+ var canUsePrivateRoom = (controlState === null || controlState === void 0 ? void 0 : controlState.mode) !== 'live';
16798
16799
  var _useRoomPlatformPrivateRoom = useRoomPlatformPrivateRoom(), cancelPrivateRoom = _useRoomPlatformPrivateRoom.cancelPrivateRoom, currentPrivateRoomOperation = _useRoomPlatformPrivateRoom.currentPrivateRoomOperation;
16799
16800
  var roomPlatformToast = useRoomPlatformToast();
16800
16801
  var _useState = _sliced_to_array$l(useState(false), 2), privateCallHovered = _useState[0], setPrivateCallHovered = _useState[1];
@@ -16803,10 +16804,10 @@ function RoomParticipantActions(param) {
16803
16804
  } : undefined;
16804
16805
  var isSettingActiveSpeaker = Boolean(actionPayload && isActionPending(RoomPlatformAction.SPEAKER_SET, actionPayload));
16805
16806
  var isSettingActiveSpeakerPending = isActionPending(RoomPlatformAction.SPEAKER_SET);
16806
- var isPrivateRoomRinging = !resolvedIsLocal && (currentPrivateRoomOperation === null || currentPrivateRoomOperation === void 0 ? void 0 : currentPrivateRoomOperation.status) === 'ringing' && currentPrivateRoomOperation.studentExternalActorId === participant.externalActorId;
16807
+ var isPrivateRoomRinging = canUsePrivateRoom && !resolvedIsLocal && (currentPrivateRoomOperation === null || currentPrivateRoomOperation === void 0 ? void 0 : currentPrivateRoomOperation.status) === 'ringing' && currentPrivateRoomOperation.studentExternalActorId === participant.externalActorId;
16807
16808
  var isInvitingPrivateRoom = Boolean(actionPayload && isActionPending(RoomPlatformAction.PRIVATE_ROOM_INVITE, actionPayload));
16808
16809
  var isCancelingPrivateRoom = isActionPending(RoomPlatformAction.PRIVATE_ROOM_CLOSE);
16809
- var canInvitePrivateRoom = Boolean(!resolvedIsLocal && resolvedIsOnline && actionPayload && hasCapability('private_room:invite') && !currentPrivateRoomOperation);
16810
+ var canInvitePrivateRoom = Boolean(canUsePrivateRoom && !resolvedIsLocal && resolvedIsOnline && actionPayload && hasCapability('private_room:invite') && !currentPrivateRoomOperation);
16810
16811
  var canCancelPrivateRoom = Boolean(isPrivateRoomRinging && hasCapability('private_room:close') && !isCancelingPrivateRoom);
16811
16812
  var setActiveSpeaker = function() {
16812
16813
  if (!actionPayload || isSettingActiveSpeakerPending) return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naviedu/room-platform-react",
3
- "version": "0.0.36",
3
+ "version": "0.0.38",
4
4
  "type": "module",
5
5
  "main": "./index.esm.js",
6
6
  "module": "./index.esm.js",