@naviedu/room-platform-react 0.0.70 → 0.0.71

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 -3
  2. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -29181,7 +29181,7 @@ function _ts_generator$5(thisArg, body) {
29181
29181
  }
29182
29182
  function ChatPanel(param) {
29183
29183
  var className = param.className;
29184
- var _messagesByRoom_activeRoom_roomId, _ref, _ref1, _ref2;
29184
+ var _messagesByRoom_activeRoom_roomId, _ref, _ref1;
29185
29185
  var _useChatContext = useChatContext(), activeRoomId = _useChatContext.activeRoomId, classNames = _useChatContext.classNames, client = _useChatContext.client, currentSubject = _useChatContext.currentSubject, hasMoreByRoom = _useChatContext.hasMoreByRoom, isLoadingOlderByRoom = _useChatContext.isLoadingOlderByRoom, loadOlderMessages = _useChatContext.loadOlderMessages, messagesByRoom = _useChatContext.messagesByRoom, messageActionWindowMs = _useChatContext.messageActionWindowMs, now = _useChatContext.now, onlineCountsByRoom = _useChatContext.onlineCountsByRoom, refreshAttachmentUrl = _useChatContext.refreshAttachmentUrl, rooms = _useChatContext.rooms, sendMessage = _useChatContext.sendMessage, deleteMessage = _useChatContext.deleteMessage, editMessage = _useChatContext.editMessage, setActiveRoomId = _useChatContext.setActiveRoomId, setRoomAtLatest = _useChatContext.setRoomAtLatest, status = _useChatContext.status, unreadCountsByRoom = _useChatContext.unreadCountsByRoom;
29186
29186
  var _useState = _sliced_to_array$8(useState(), 2), forwardingMessage = _useState[0], setForwardingMessage = _useState[1];
29187
29187
  var activeRoom = findActiveRoom(rooms, activeRoomId);
@@ -29269,7 +29269,7 @@ function ChatPanel(param) {
29269
29269
  onLatestStateChange: activeRoom ? function(isAtLatest) {
29270
29270
  return setRoomAtLatest(activeRoom.roomId, isAtLatest);
29271
29271
  } : undefined
29272
- }, (_ref2 = activeRoom === null || activeRoom === void 0 ? void 0 : activeRoom.roomId) !== null && _ref2 !== void 0 ? _ref2 : 'empty-room'),
29272
+ }),
29273
29273
  activeRoom ? /*#__PURE__*/ jsx(MessageComposer, {
29274
29274
  canSend: canSend,
29275
29275
  className: classNames === null || classNames === void 0 ? void 0 : classNames.composer,
@@ -29278,7 +29278,7 @@ function ChatPanel(param) {
29278
29278
  return sendMessage(activeRoom.roomId, text, attachmentIds, idempotencyKey);
29279
29279
  },
29280
29280
  roomClient: canSend ? client === null || client === void 0 ? void 0 : client.room(activeRoom.roomId) : undefined
29281
- }, activeRoom.roomId) : null,
29281
+ }) : null,
29282
29282
  /*#__PURE__*/ jsx(ForwardMessageDialog, {
29283
29283
  className: classNames === null || classNames === void 0 ? void 0 : classNames.forwardDialog,
29284
29284
  message: forwardingMessage,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naviedu/room-platform-react",
3
- "version": "0.0.70",
3
+ "version": "0.0.71",
4
4
  "type": "module",
5
5
  "main": "./index.esm.js",
6
6
  "module": "./index.esm.js",