Skip to content

fix: adjusted CXProvider delegate initialization#2148

Merged
greenfrvr merged 2 commits intofeat/callkit-telecom-integrationfrom
fix/delegate-initialization
Mar 2, 2026
Merged

fix: adjusted CXProvider delegate initialization#2148
greenfrvr merged 2 commits intofeat/callkit-telecom-integrationfrom
fix/delegate-initialization

Conversation

@greenfrvr
Copy link
Contributor

💡 Overview

This PR solves an issue with quickly answered CallKit call. The problem was that CXProvider delegate was not set by the moment CallKit answer event was omitted and was not added to delayed events store. Current implementation ensures that delegate will be set up before we report the call, so that all consequent events will be handled.

@greenfrvr greenfrvr requested a review from santhoshvai March 2, 2026 12:12
@greenfrvr greenfrvr self-assigned this Mar 2, 2026
@changeset-bot
Copy link

changeset-bot bot commented Mar 2, 2026

⚠️ No Changeset found

Latest commit: 4f042ec

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 2, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/delegate-initialization

Tip

Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs).
Share your feedback on Discord.


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Comment on lines +338 to +340
// This is mostly needed for very first setup, as we need to override the default
// provider configuration which is set in the constructor.
// IMPORTANT: We override CXProvider instance only if there is no registered call, otherwise we may lose corrsponding call state/events from CallKit
Copy link
Member

@santhoshvai santhoshvai Mar 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// This is mostly needed for very first setup, as we need to override the default
// provider configuration which is set in the constructor.
// IMPORTANT: We override CXProvider instance only if there is no registered call, otherwise we may lose corrsponding call state/events from CallKit
// we should not override provider settings when there is already a registered call
// because that would remove the provider that was associated with that call

@greenfrvr greenfrvr merged commit 199bd10 into feat/callkit-telecom-integration Mar 2, 2026
13 checks passed
@greenfrvr greenfrvr deleted the fix/delegate-initialization branch March 2, 2026 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants