Azure-docs: Initialize the ACSCallAgent: createCallAgent condition reversed

Created on 24 Sep 2020  Â·  5Comments  Â·  Source: MicrosoftDocs/azure-docs

In the iOS quick-start the code for creating the call agent has the condition for the result of the creation reversed:

callClient?.createCallAgent(userCredential!,
    withCompletionHandler: { (callAgent, error) in
        if error != nil {
            print("Create agent succeeded")
            self.callAgent = callAgent
        } else {
            print("Create agent failed")
        }
})

Instead of if error != nil { it should be if error == nil {


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri2 azure-communication-servicesvc cxp doc-bug triaged

All 5 comments

@razvansalajan, Thanks for the feedback! We are taking a look into this and will get back to you soon.

Thanks again for the feedback! I have assigned the issue to the content author to review further and update the document as appropriate.

Thanks for the heads up, @razvansalajan. I've corrected the logic per your suggestion and you should see these changes live soon.

@AjayKumar-MSFT the relevant PR has been merged: https://github.com/MicrosoftDocs/azure-docs-pr/pull/131688

Feel free to close this up :)

Dan, you should see the document reflect the updated changes shortly. So, we will now proceed to close this thread. If there are further questions regarding this matter, please tag us in your reply. We will gladly continue the discussion.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

spottedmahn picture spottedmahn  Â·  3Comments

mrdfuse picture mrdfuse  Â·  3Comments

behnam89 picture behnam89  Â·  3Comments

varma31 picture varma31  Â·  3Comments

paulmarshall picture paulmarshall  Â·  3Comments