stream-chat-react 12.2.1 → 12.2.2
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.
- package/dist/components/MessageList/MessageList.js +4 -1
- package/dist/components/MessageList/VirtualizedMessageList.js +4 -1
- package/dist/index.browser.cjs +4 -2
- package/dist/index.browser.cjs.map +2 -2
- package/dist/index.node.cjs +4 -2
- package/dist/index.node.cjs.map +2 -2
- package/package.json +1 -1
package/dist/index.node.cjs
CHANGED
|
@@ -48834,7 +48834,8 @@ var MessageListWithContext = (props) => {
|
|
|
48834
48834
|
}
|
|
48835
48835
|
}, [highlightedMessageId]);
|
|
48836
48836
|
const showEmptyStateIndicator = elements.length === 0 && !threadList;
|
|
48837
|
-
|
|
48837
|
+
const dialogManagerId = threadList ? "message-list-dialog-manager-thread" : "message-list-dialog-manager";
|
|
48838
|
+
return /* @__PURE__ */ import_react175.default.createElement(MessageListContextProvider, { value: { listElement, scrollToBottom } }, /* @__PURE__ */ import_react175.default.createElement(MessageListMainPanel2, null, /* @__PURE__ */ import_react175.default.createElement(DialogManagerProvider, { id: dialogManagerId }, !threadList && showUnreadMessagesNotification && /* @__PURE__ */ import_react175.default.createElement(UnreadMessagesNotification2, { unreadCount: channelUnreadUiState?.unread_messages }), /* @__PURE__ */ import_react175.default.createElement(
|
|
48838
48839
|
"div",
|
|
48839
48840
|
{
|
|
48840
48841
|
className: (0, import_clsx38.default)(messageListClass, customClasses?.threadList),
|
|
@@ -49547,7 +49548,8 @@ var VirtualizedMessageListWithContext = (props) => {
|
|
|
49547
49548
|
};
|
|
49548
49549
|
}, [highlightedMessageId, processedMessages]);
|
|
49549
49550
|
if (!processedMessages) return null;
|
|
49550
|
-
|
|
49551
|
+
const dialogManagerId = threadList ? "virtualized-message-list-dialog-manager-thread" : "virtualized-message-list-dialog-manager";
|
|
49552
|
+
return /* @__PURE__ */ import_react185.default.createElement(import_react185.default.Fragment, null, /* @__PURE__ */ import_react185.default.createElement(MessageListMainPanel2, null, /* @__PURE__ */ import_react185.default.createElement(DialogManagerProvider, { id: dialogManagerId }, !threadList && showUnreadMessagesNotification && /* @__PURE__ */ import_react185.default.createElement(UnreadMessagesNotification2, { unreadCount: channelUnreadUiState?.unread_messages }), /* @__PURE__ */ import_react185.default.createElement("div", { className: customClasses?.virtualizedMessageList || "str-chat__virtual-list" }, /* @__PURE__ */ import_react185.default.createElement(
|
|
49551
49553
|
import_react_virtuoso2.Virtuoso,
|
|
49552
49554
|
{
|
|
49553
49555
|
atBottomStateChange,
|