Skip to content

Commit bd41607

Browse files
authored
docs: unable to handle filters for channels received through event (#2718)
1 parent 9f2bb15 commit bd41607

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docusaurus/docs/reactnative/core-components/channel-list.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ export const App = () => <OverlayProvider>
4040
</OverlayProvider>;
4141
```
4242

43+
:::note
44+
When receiving channel information from channel events, the filters are not respected; the reason for this is that channel filters can get very complex, and implementing that filtering logic that supports all of the custom filter would be very hard to do. Implementing this on the backend side isn't an option as it is inefficient and has to cater to different filters. So, to help you with it, you will have to override the `notification.message_new` event using the [`onNewMessageNotification`](./channel-list.mdx#onnewmessagenotification) and `message.new` event handlers using the [`onNewMessage`](./channel-list.mdx#onnewmessage) prop of the `ChannelList` component.
45+
:::
46+
4347
## Context Providers
4448

4549
`ChannelList` contains the provider for the `ChannelsContext`. This can be accessed using the corresponding hook.

0 commit comments

Comments
 (0)