stream-chat-react icon indicating copy to clipboard operation
stream-chat-react copied to clipboard

bug: selected channel search result is not added to channel list upon selection

Open MartinCupela opened this issue 1 year ago • 1 comments

Describe the bug

Only direct-messages channels created upon clicking the search result are added into the channel list.

To Reproduce

Steps to reproduce the behavior:

  1. Setup channel search filters
<ChannelList filters={filters} sort={sort} options={options} showChannelSearch additionalChannelSearchProps={
      {searchForChannels: true,
        searchQueryParams: {
        channelFilters: {
          filters: { members: { $in: [userId ] } },
        }}}}
    />
  1. Type string contained in a name of at least one channel
  2. Select a channel from the search result list
  3. Observe that the channel content is rendered in the message list but the channel preview is not visible in the channel list.

Expected behavior

Add selected channel from the search list into the channel list. The position should be configurable - alphabetical order / top of the list.

Video

searched_channel_not_added_to_channel_list.webm

Package version

  • stream-chat-react: v9.1.5

MartinCupela avatar Jul 22 '22 04:07 MartinCupela

this will be fixed with the introduction of theming v2 changes

MartinCupela avatar Jul 29 '22 09:07 MartinCupela

search result addition to channel list fixed with release of v10.0.0

MartinCupela avatar Sep 12 '22 19:09 MartinCupela