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

Need a way to filter channels based on read/unread status directly on the frontend with pagination support

Open sangle2022 opened this issue 9 months ago • 0 comments

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!

sangle2022 avatar May 12 '25 09:05 sangle2022