Description
Hi team,
I'm using the stream-chat-react SDK in a React application and would like to implement a feature to filter and display channels based on their read/unread status, with proper support for pagination (limit and offset).
While the getUnreadCount API provides a summary of unread messages across channels, there is currently no direct way to:
- Filter only unread, read, or all channels efficiently
- Apply this filtering during pagination on the frontend without loading the entire channel list first
This becomes challenging in applications with a large number of channels (e.g., 100+), where fetching and filtering all channels client-side is inefficient and impacts performance.
It would be great to have native support in the SDK to:
-
Filter channels by read, unread, or all
-
Prioritize unread channels in paginated results
Is there a recommended approach for this currently, or are there any plans to add this capability in the SDK?
Thanks!