stream-chat-react 12.15.6 → 12.15.7

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.
@@ -46645,13 +46645,13 @@ var useChannelListShapeDefaults = () => {
46645
46645
  if (typeof customHandler === "function") {
46646
46646
  return customHandler(setChannels, event);
46647
46647
  }
46648
- if (!event.channel) {
46648
+ if (!event.channel_id && !event.channel_type) {
46649
46649
  return;
46650
46650
  }
46651
46651
  const channel = await getChannel({
46652
46652
  client,
46653
- id: event.channel.id,
46654
- type: event.channel.type
46653
+ id: event.channel_id,
46654
+ type: event.channel_type
46655
46655
  });
46656
46656
  const considerArchivedChannels = shouldConsiderArchivedChannels(filters);
46657
46657
  if (isChannelArchived(channel) && considerArchivedChannels && !filters.archived) {
@@ -56146,6 +56146,8 @@ var EmptyPlaceholder = ({
56146
56146
  context
56147
56147
  }) => {
56148
56148
  const { EmptyStateIndicator: EmptyStateIndicator2 = EmptyStateIndicator } = useComponentContext("VirtualizedMessageList");
56149
+ if (typeof context?.processedMessages !== "undefined" && context.processedMessages.length > 0)
56150
+ return null;
56149
56151
  return /* @__PURE__ */ import_react256.default.createElement(import_react256.default.Fragment, null, EmptyStateIndicator2 && /* @__PURE__ */ import_react256.default.createElement(EmptyStateIndicator2, { listType: context?.threadList ? "thread" : "message" }));
56150
56152
  };
56151
56153
  var messageRenderer = (virtuosoIndex, _data, virtuosoContext) => {
@@ -56875,7 +56877,8 @@ var ChannelInner = (props) => {
56875
56877
  {
56876
56878
  ...initialState,
56877
56879
  hasMore: channel.state.messagePagination.hasPrev,
56878
- loading: !channel.initialized
56880
+ loading: !channel.initialized,
56881
+ messages: channel.state.messages
56879
56882
  }
56880
56883
  );
56881
56884
  const jumpToMessageFromSearch = useSearchFocusedMessage();
@@ -57807,7 +57810,7 @@ var useChat = ({
57807
57810
  };
57808
57811
  (0, import_react262.useEffect)(() => {
57809
57812
  if (!client) return;
57810
- const version = "12.15.6";
57813
+ const version = "12.15.7";
57811
57814
  const userAgent = client.getUserAgent();
57812
57815
  if (!userAgent.includes("stream-chat-react")) {
57813
57816
  client.setUserAgent(`stream-chat-react-${version}-${userAgent}`);