Skip to content

fix(call): prevent initiating a second call to the same number (WT-1382)#1238

Closed
SERDUN wants to merge 1 commit intodevelopfrom
fix/wt-1382-prevent-duplicate-call-same-number
Closed

fix(call): prevent initiating a second call to the same number (WT-1382)#1238
SERDUN wants to merge 1 commit intodevelopfrom
fix/wt-1382-prevent-duplicate-call-same-number

Conversation

@SERDUN
Copy link
Copy Markdown
Member

@SERDUN SERDUN commented Apr 30, 2026

Summary

  • Adds a guard in CallBloc.__onMutationControlStart that checks if a call to the same handle already exists before initiating a new outgoing call
  • If a duplicate is detected, the new call is silently dropped and the existing call screen is surfaced (minimized: false)
  • Covers all three STR scenarios from WT-1382: ringing without voicemail, ringing with voicemail, and active call

Root cause

__onMutationControlStart was putting any existing call on hold and proceeding unconditionally — there was no guard on the destination number. The fix is a single firstWhereOrNull check on activeCalls before the hold loop.

When an active or ringing call session already exists for a given handle,
a new outgoing call attempt to the same number is blocked and the existing
call screen is surfaced instead of putting the call on hold and dialing again.
@WebTrit WebTrit deleted a comment from claude Bot Apr 30, 2026
@SERDUN SERDUN marked this pull request as ready for review April 30, 2026 10:20
@SERDUN SERDUN requested a review from digiboridev April 30, 2026 10:21
@SERDUN SERDUN closed this Apr 30, 2026
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.

1 participant