azure-sdk-for-ios icon indicating copy to clipboard operation
azure-sdk-for-ios copied to clipboard

[BUG] totalParticipantCount changes to 1 if another incoming call arrives

Open JasonWeinzierl opened this issue 11 months ago • 11 comments

Describe the bug

If I'm in a call with another participant (totalParticipantCount=2), and a third user calls me, then total participant count changes to 1.

Exception or Stack Trace

N/A

To Reproduce

  1. Start a call with another participant.
  2. Receive an incoming call from a third participant.
  3. totalParticipantCount of your active call will change to 1.

Code Snippet

extension MyCallDelegate: CallDelegate {
  func call(_ call: Call, didChangeTotalParticipantCount args: PropertyChangedEventArgs) {
    // call.totalParticipantCount will be 1 here when incoming call arrives.
  }
}

Expected behavior

totalParticipantCount of my active call should not change if my active call is still Connected.

Screenshots

N/A

Setup (please complete the following information):

  • OS: iOS: 17.3
  • IDE: Xcode: 15.2
  • Version of the Library used: AzureCommunicationCalling: 2.9.0-beta.1

Additional context

This seems to be occurring on the Android library too. Is this intentional behavior, and if so, why and how do we restore totalParticipantCount back to 2 if the incoming call has been rejected?

Information Checklist Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

  • [x] Bug Description Added
  • [x] Repro Steps Added
  • [x] Setup information Added

JasonWeinzierl avatar Feb 28 '24 20:02 JasonWeinzierl