fix(client): don't overwrite call members on call.update#2147
fix(client): don't overwrite call members on call.update#2147
Conversation
|
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughThe Call.update method is modified to no longer extract and apply members from API responses. A corresponding test ensures that members remain uncleared when custom call data is updated, validating the new behavior. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment Tip CodeRabbit can use oxc to improve the quality of JavaScript and TypeScript code reviews.Add a configuration file to your project to customize how CodeRabbit runs oxc. |
| const { call, members, own_capabilities } = response; | ||
| const { call, own_capabilities } = response; | ||
| this.state.updateFromCallResponse(call); | ||
| this.state.setMembers(members); |
There was a problem hiding this comment.
I'm not sure about this @jdimovska. This seems to be a backend bug; the SDK is implemented according to the OpenAPI contract.
💡 Overview
This PR fixes an issue where call.update overwrites the local members state with an empty array from the backend response.
Summary by CodeRabbit