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

Add archived_at option to ChannelSort

Open lukewilson2002 opened this issue 11 months ago • 0 comments

Motivation There is a pinned_at property but not an archived_at to sort channels in the ChannelList by whether they have been archived. Currently I believe the only way to achieve this without forking, would be to build a custom channel list component.

Type in question: ChannelSort<DefaultGenerics>

Proposed solution Add archived_at to channel sorting options.

See this documentation that suggests pinned_at and archived_at are very similar in proposed use, except that channels cannot be sorted by when they were archived:

https://getstream.io/chat/docs/sdk/react-native/guides/channel-pinning-and-archiving/#filtering-channels

lukewilson2002 avatar Mar 05 '25 16:03 lukewilson2002