stream-chat-js
stream-chat-js copied to clipboard
feat: add support for channel pinning and archiving
CLA
- [ ] I have signed the Stream CLA (required).
- [ ] Code changes are tested
Description of the changes, What, Why and How?
This adds support for pinning and archiving channels. The channel pin is stored on the user-channel relationship (channel membership). The backend API endpoint for this is not yet live.
Changelog
- Fix
partialUpdateMemberreturning a type without thechannel_memberkey that's returned from the API - Add support for pinning channels using
updateMemberPartial(just TS type update) - Add
channel.archive()andchannel.unarchive() - Add
channel.pin()andchannel.unpin() - Add support for added filter and sort fields in
queryChannels