@100mslive/roomkit-react 0.3.19-alpha.16 → 0.3.19-alpha.17

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "prebuilt",
11
11
  "roomkit"
12
12
  ],
13
- "version": "0.3.19-alpha.16",
13
+ "version": "0.3.19-alpha.17",
14
14
  "author": "100ms",
15
15
  "license": "MIT",
16
16
  "repository": {
@@ -75,12 +75,12 @@
75
75
  "react": ">=17.0.2 <19.0.0"
76
76
  },
77
77
  "dependencies": {
78
- "@100mslive/hls-player": "0.3.19-alpha.16",
78
+ "@100mslive/hls-player": "0.3.19-alpha.17",
79
79
  "@100mslive/hms-noise-cancellation": "0.0.1",
80
- "@100mslive/hms-virtual-background": "1.13.19-alpha.16",
81
- "@100mslive/hms-whiteboard": "0.0.9-alpha.16",
82
- "@100mslive/react-icons": "0.10.19-alpha.16",
83
- "@100mslive/react-sdk": "0.10.19-alpha.16",
80
+ "@100mslive/hms-virtual-background": "1.13.19-alpha.17",
81
+ "@100mslive/hms-whiteboard": "0.0.9-alpha.17",
82
+ "@100mslive/react-icons": "0.10.19-alpha.17",
83
+ "@100mslive/react-sdk": "0.10.19-alpha.17",
84
84
  "@100mslive/types-prebuilt": "0.12.12",
85
85
  "@emoji-mart/data": "^1.0.6",
86
86
  "@emoji-mart/react": "^1.0.1",
@@ -117,5 +117,5 @@
117
117
  "uuid": "^8.3.2",
118
118
  "worker-timers": "^7.0.40"
119
119
  },
120
- "gitHead": "f4e569ef4919bfe1b7b6bc4f82bb9c3f856a50ce"
120
+ "gitHead": "a05fd0685892417450cf9540fa4cbbea499fcd08"
121
121
  }
@@ -50,7 +50,10 @@ export const PIPChat = () => {
50
50
  const isLocalPeerBlacklisted = useIsPeerBlacklisted({ local: true });
51
51
  const { elements } = useRoomLayoutConferencingScreen();
52
52
  const message_placeholder = elements?.chat?.message_placeholder || 'Send a message';
53
- const canSendChatMessages = !!elements?.chat?.public_chat_enabled || !!elements?.chat?.roles_whitelist?.length;
53
+ const canSendChatMessages =
54
+ !!elements?.chat?.public_chat_enabled ||
55
+ !!elements?.chat?.roles_whitelist?.length ||
56
+ !!elements?.chat?.private_chat_enabled;
54
57
 
55
58
  const getChatStatus = useCallback(() => {
56
59
  if (isLocalPeerBlacklisted) return "You've been blocked from sending messages";
@@ -114,9 +117,13 @@ export const PIPChat = () => {
114
117
  <Text variant="h5" css={{ mt: '$8', c: '$on_surface_high' }}>
115
118
  {canSendChatMessages ? 'Start a conversation' : 'No messages yet'}
116
119
  </Text>
117
- <Text variant="sm" style={{ maxWidth: '80%', textAlign: 'center', marginTop: '4px' }}>
118
- There are no messages here yet. Start a conversation by sending a message.
119
- </Text>
120
+ {canSendChatMessages ? (
121
+ <Text variant="sm" style={{ maxWidth: '80%', textAlign: 'center', marginTop: '4px' }}>
122
+ There are no messages here yet. Start a conversation by sending a message.
123
+ </Text>
124
+ ) : (
125
+ ''
126
+ )}
120
127
  </div>
121
128
  ) : (
122
129
  filteredMessages.map(message => (