aws / amazon-chime-sdk-component-library-react

Amazon Chime React Component Library with integrations with the Amazon Chime SDK.
Apache License 2.0
264 stars 159 forks source link

Add await for toggleContentShare #946

Closed ltrung closed 3 months ago

ltrung commented 3 months ago

Issue #: Currently in toggleContentShare we do not await for the JS SDK API thus, if the APIs fail, callers would not be able to handle it.

Description of changes:

Testing

  1. Have you successfully run npm run build:release locally? Yes
  2. How did you test these changes? Add unit tests
  3. If you made changes to the component library, have you provided corresponding documentation changes? N/A By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.