stream-chat-react
stream-chat-react copied to clipboard
bug: selected channel search result is not added to channel list upon selection
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:
- Setup channel search filters
<ChannelList filters={filters} sort={sort} options={options} showChannelSearch additionalChannelSearchProps={
{searchForChannels: true,
searchQueryParams: {
channelFilters: {
filters: { members: { $in: [userId ] } },
}}}}
/>
- Type string contained in a name of at least one channel
- Select a channel from the search result list
- 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
this will be fixed with the introduction of theming v2 changes
search result addition to channel list fixed with release of v10.0.0