-
Notifications
You must be signed in to change notification settings - Fork 280
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: per-user channel pinning/archiving #2555
Conversation
7af0a7d
to
fa07dad
Compare
Size Change: +12.5 kB (+1.06%) Total Size: 1.19 MB
ℹ️ View Unchanged
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2555 +/- ##
==========================================
- Coverage 82.95% 81.14% -1.82%
==========================================
Files 444 448 +4
Lines 9222 9460 +238
Branches 2254 2316 +62
==========================================
+ Hits 7650 7676 +26
- Misses 1239 1422 +183
- Partials 333 362 +29 ☔ View full report in Codecov by Sentry. |
2b6dff9
to
8f1a777
Compare
export const isChannelPinned = <SCG extends ExtendableGenerics>(channel: Channel<SCG>) => { | ||
if (!channel) return false; | ||
|
||
const member = channel.state.membership; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey!
I'm working on implementing pinning channels on our app.
I would just like to inform you that the channel.state.membership
does not get updated when user pins/unpins a channel when a member.updated
websocket notifications is received. Those this will not represent the "current" value of the pinned_at
state.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, @michalvankodev, I know - I have another branch with appropriate change ready for a PR, it will be linked to this one and new version of the client will be required before releasing this feature. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one: GetStream/stream-chat-js#1409
1489843
to
3642fbb
Compare
e0ecde4
to
620e4a0
Compare
## [12.8.0](v12.7.1...v12.8.0) (2024-12-12) ### Features * per-user channel pinning/archiving ([#2555](#2555)) ([a51fad0](a51fad0))
🎉 This PR is included in version 12.8.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎯 Goal
Integrate channel pinning and archiving within SDK.
This PR relies on: GetStream/stream-chat-js#1409 and GetStream/stream-chat-css#321