Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for channel pinning and archiving #1380

Closed
wants to merge 6 commits into from

Conversation

akupila
Copy link
Contributor

@akupila akupila commented Oct 24, 2024

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

Copy link
Contributor

Size Change: +2.92 kB (+0.68%)

Total Size: 430 kB

Filename Size Change
dist/browser.es.js 93.3 kB +689 B (+0.74%)
dist/browser.full-bundle.min.js 54.3 kB +210 B (+0.39%)
dist/browser.js 94.4 kB +667 B (+0.71%)
dist/index.es.js 93.4 kB +689 B (+0.74%)
dist/index.js 94.5 kB +669 B (+0.71%)

compressed-size-action

@akupila
Copy link
Contributor Author

akupila commented Nov 1, 2024

This is instead in two PRs:
#1378
#1386

@akupila akupila closed this Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant