Include OWN_CAPABILITIES data in websocket message for users in call.member_added
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 38/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- react, typescript
- Domain
- frontend
Research direction
Start in the @stream-io/video-react-sdk handling for the call.member_added websocket event and the useHasPermissions hook. Trace how OWN_CAPABILITIES is received and stored, then verify that a newly added client user causes the join/leave UI state to update without an extra call.get(); add or update relevant tests if the package has coverage for this event.
Written by the indexing model from the issue text.
Description
Which package/packages do you use?
-
@stream-io/video-react-sdk -
@stream-io/video-react-native-sdk -
@stream-io/video-client
Is your feature request related to a problem? Please describe.
Hosts dynaically add and remove call members and using a waiting room system.
When I add a call member the newly added call user receives the 'call.member_added' event message via the websocket.
But I also have to execute call.get() to refresh OWN_CAPABILITIES of the user to test that the user can now join a call to refresh the UI 'Join/Leave' button.
I utilise 'useHasPermissions' hook and this is stale until I execute call.get(), which I am now doing on 'call.member_*' events if event.members has client user reference.
Describe the solution you'd like
When sending call.member_added WS message include OWN_CAPABILITIES if the user is the client user, and
refresh the internal state of the call.
Maybe this triggers a useHasPermissions re-render, or you implement a new useOwnCapabilities() hook that triggers on change.
Describe alternatives you've considered
Additional context
- Dominant language
- TypeScript
- Stars
- 125
- Forks
- 49
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 82
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from GetStream/stream-video-js
-
video-filters-web: queued output VideoFrames leak on stop() — "A VideoFrame was garbage collected without being closed"May be free again @jdimovska claimed this 96 days ago, and no pull request is open. Open
GetStream/stream-video-js#2384 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
GetStream/stream-video-js#2338 · 3 comments ·
Maintainers usually reply within 1 day
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 42/100
GetStream/stream-video-js#2146 · 2 comments ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 35/100
GetStream/stream-video-js#1992 · 2 comments ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 35/100
GetStream/stream-video-js#1988 · 8 comments ·
Maintainers usually reply within 1 day
All issues in GetStream/stream-video-js
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
siyuan-note/siyuan#21692 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
GetStream/stream-chat-react#3467 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
resend/resend-node#1206 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
cloudflare/cloudflare-typescript#2821 ·