stream-chat-react 12.11.0 → 12.11.1

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.
@@ -46592,6 +46592,9 @@ var useChannelListShapeDefaults = () => {
46592
46592
  const channelId = event.channel_id;
46593
46593
  const considerPinnedChannels = shouldConsiderPinnedChannels(sort);
46594
46594
  const considerArchivedChannels = shouldConsiderArchivedChannels(filters);
46595
+ if (!considerPinnedChannels && !considerArchivedChannels || lockChannelOrder) {
46596
+ return;
46597
+ }
46595
46598
  const pinnedAtSort = extractSortValue({ atIndex: 0, sort, targetKey: "pinned_at" });
46596
46599
  setChannels((currentChannels) => {
46597
46600
  const targetChannel = client.channel(channelType, channelId);
@@ -46599,7 +46602,6 @@ var useChannelListShapeDefaults = () => {
46599
46602
  const targetChannelExistsWithinList = targetChannelIndex >= 0;
46600
46603
  const isTargetChannelArchived = isChannelArchived(targetChannel);
46601
46604
  const isTargetChannelPinned = isChannelPinned(targetChannel);
46602
- if (!considerPinnedChannels || lockChannelOrder) return currentChannels;
46603
46605
  const newChannels = [...currentChannels];
46604
46606
  if (targetChannelExistsWithinList) {
46605
46607
  newChannels.splice(targetChannelIndex, 1);
@@ -56821,7 +56823,7 @@ var useChat = ({
56821
56823
  if (!client) return;
56822
56824
  const userAgent = client.getUserAgent();
56823
56825
  if (!userAgent.includes("stream-chat-react")) {
56824
- client.setUserAgent(`stream-chat-react-12.11.0-${userAgent}`);
56826
+ client.setUserAgent(`stream-chat-react-12.11.1-${userAgent}`);
56825
56827
  }
56826
56828
  client.threads.registerSubscriptions();
56827
56829
  client.polls.registerSubscriptions();