Skip to content

fix: return Promise from setOutputDeviceAsync()#155

Open
reichhartd wants to merge 1 commit intoVapiAI:mainfrom
talentunveiled:fix/return-setOutputDeviceAsync-promise
Open

fix: return Promise from setOutputDeviceAsync()#155
reichhartd wants to merge 1 commit intoVapiAI:mainfrom
talentunveiled:fix/return-setOutputDeviceAsync-promise

Conversation

@reichhartd
Copy link

Fixes #154

setOutputDeviceAsync() doesn't return the promise from this.call?.setOutputDeviceAsync(), so consumers can't catch errors from Daily.co's setSinkId(). Just adds the missing return.

Test plan

  • Added test that verifies the promise rejection is propagated
  • All existing tests pass
  • Build succeeds

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.

setOutputDeviceAsync() doesn't return the Daily.co Promise

1 participant