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

Filter channels by unread only

Open leticiafontoura opened this issue 3 years ago • 1 comments

Motivation Our users sometimes need to check whether they have hidden, unread messages.

Proposed solution It would be nice if under 'filters' we could have an option to only query channels with unread messages.

Acceptance Criteria My only requirement would be for the filter to work.

leticiafontoura avatar Sep 29 '22 14:09 leticiafontoura

Hi Leticia,

Unfortunately, we don't have a built-in queryable field allowing you to filter by unread channels using the QueryChannels endpoint. I'm passing this feature request to the product board team for consideration.

For now, you would have to query that user's channels first and then filter your response to only retrieve channels with unread_count>0. It is possible to sort by has_unread or unread_count to retrieve the unread channels first, as described here: []https://getstream.io/chat/docs/javascript/query_channels/?language=javascript#query-parameters

If you have more questions, we are happy to continue this conversation over the support line. Please email us at @[email protected]

Best regards, Guilherme Support Engineer

gc0rtes avatar Sep 30 '22 07:09 gc0rtes

As this is a back-end related request, it is moved to the BE backlog.

MartinCupela avatar May 28 '24 16:05 MartinCupela