-
Notifications
You must be signed in to change notification settings - Fork 46
fix(llc): fix leave call throwing exception #1065
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
Conversation
WalkthroughUpdated changelog with an upcoming bug-fix note and adjusted Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches🧪 Generate unit tests
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 |
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.
Actionable comments posted: 0
🧹 Nitpick comments (2)
packages/stream_video/CHANGELOG.md (1)
4-4: Fix typo/grammar in changelog entry.Remove the extra “the” and tighten the phrasing.
-* Fixed an issue where the leave call operation could fail if the there were some issues in parsing custom data. +* Fixed an issue where the leave call operation could fail if there were issues parsing custom data.packages/stream_video/lib/open_api/video/coordinator/model/user_response.dart (1)
246-246: Avoid force-unwrap; default to empty map for resilience.Using
!will still throw ifcustomis absent/null. Defaulting keeps behavior consistent with the constructor’sconst {}and prevents crashes if the backend omitscustom.- custom: mapCastOfType<String, Object?>(json, r'custom')!, + custom: mapCastOfType<String, Object?>(json, r'custom') ?? const {},Note: If
customcan be omitted, consider relaxing the debug-time assertion or removing'custom'fromrequiredKeysto avoid assert failures in debug builds. Also verify this manual edit won't be overwritten by codegen.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Disabled knowledge base sources:
- Linear integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (2)
packages/stream_video/CHANGELOG.md(1 hunks)packages/stream_video/lib/open_api/video/coordinator/model/user_response.dart(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (6)
- GitHub Check: build
- GitHub Check: analyze
- GitHub Check: stream_video_flutter
- GitHub Check: stream_video_noise_cancellation
- GitHub Check: stream_video_push_notification
- GitHub Check: stream_video
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1065 +/- ##
=====================================
Coverage 4.86% 4.86%
=====================================
Files 591 591
Lines 39914 39914
=====================================
Hits 1943 1943
Misses 37971 37971 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
packages/stream_video/lib/open_api/video/coordinator/model/user_response.dart
Show resolved
Hide resolved
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
packages/stream_video/lib/open_api/video/coordinator/model/user_response.dart (1)
246-247: Null-safety: avoid!to prevent crashes ifcustomis nullThe value-type fix is correct and solves the cast error on null entries. To be defensive in release builds (where asserts are stripped), prefer a fallback over
!in case the backend sendscustom: null.- // MANUAL_EDIT: allow null values - custom: mapCastOfType<String, Object?>(json, r'custom')!, + // MANUAL_EDIT: allow null values; default to empty map if null + custom: mapCastOfType<String, Object?>(json, r'custom') ?? const <String, Object?>{},Please confirm the API never returns
customas null; if it might, the above change will prevent a release-mode NPE.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Disabled knowledge base sources:
- Linear integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (1)
packages/stream_video/lib/open_api/video/coordinator/model/user_response.dart(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (6)
- GitHub Check: stream_video_noise_cancellation
- GitHub Check: stream_video_push_notification
- GitHub Check: stream_video
- GitHub Check: analyze
- GitHub Check: build
- GitHub Check: stream_video_flutter
Summary by CodeRabbit
Bug Fixes
Documentation