Repository navigation
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
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 |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## feat/flu-856-ringing-call-coordinator #1438 +/- ##
=========================================================================
+ Coverage 44.28% 44.40% +0.12%
=========================================================================
Files 421 422 +1
Lines 31472 31481 +9
=========================================================================
+ Hits 13937 13979 +42
+ Misses 17535 17502 -33 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
renefloor
added this pull request to stack #1442
October 9, 2026 06:12
Accept, reject, the accept and reject events, the wait for a ring to be answered and the ring state poller move out of Call. The wait now stops with the call instead of running out its timer, and the cross-call steps of accept move to StreamVideo.ringing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
renefloor
force-pushed
the
feat/flu-863-call-ringing-controller
branch
from
October 9, 2026 12:27
4b7be44 to
830ca9a
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes FLU-863
Part of FLU-859 · 23/26, stacked on #1437
What changed
CallRingingController(lib/src/call/ringing/,@internal) rings aCall.Call.acceptandCall.rejectdelegate to it.Call:acceptandreject;call.acceptedandcall.rejectedhandlers, which reject locally when the user answered on another device;_startRingStatePollingIfNeeded,_onPolledRingState,_stopRingStatePolling).accept(cancel the user's outgoing ring of another call, and leave the active call unless several may be active) areRingingCallCoordinator.prepareToAccept, the C1 coordinator. It returnsnullwhen there is nothing to clear. The accept then marks the call accepted in the same turn, as before;call_accept_testpins that.state.firstWhere(...).timeout(...), which_untilLeftonly abandoned. A ring the caller cancelled kept the timeout running and logged[awaitIncomingToBeAccepted] failed: TimeoutException25 s later, for a call that was already gone (seen on a Pixel 8 while testing A7). The controller's wait takes aleftfuture from the connection coordinator. When it completes, the wait cancels its timer and state subscription and ends withnull, and the join ends as cancelled._awaitCallToBeJoinedis deleted. Its branch waited forCallStatusJoining, which onlylifecycleCallJoiningsets, and nothing calls that. This is the TODO the ticket mentions.clearCallAcceptedOnThisDevice,releaseRingingCall) isCallRingingController.release(), called from_clearand_releaseUnjoined.Decisions to check
Call.endstays onCall. The ticket lists it, but since A4 it is a one-line delegate to the connection coordinator, which owns the end. A ringing controller would only forward it._clear'sfinallystay where they are._clearmatches the outgoing call by cid and_releaseUnjoinedby identity. Moving them into one method would pick one rule, which is a behaviour change outside this ticket.Future not completedtoNo answer within <timeout>. It is still aTimeoutExceptionwrapped the same way, and still ends the join as an unanswered ring.Tests
test/src/call/ringing/call_ringing_controller_test.dart(5):ringing_call_coordinator_test:acceptcancels the user's outgoing ring of another call;stream_video: 1298 passed;stream_video_push_notification: 67;stream_video_flutterwithout goldens: 729.🤖 Generated with Claude Code