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

feat: add support for channel pinning and archiving

Open akupila opened this issue 1 year ago • 1 comments

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 partialUpdateMember returning a type without the channel_member key that's returned from the API
  • Add support for pinning channels using updateMemberPartial (just TS type update)
  • Add channel.archive() and channel.unarchive()
  • Add channel.pin() and channel.unpin()
  • Add support for added filter and sort fields in queryChannels

akupila avatar Oct 24 '24 11:10 akupila