Skip to content

Commit 14ddf12

Browse files
remove some extra check that I added
1 parent 375dcd0 commit 14ddf12

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/sessions/session-manager.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,10 @@ export class SessionManager {
227227
});
228228

229229
const promises = sessions.map(session => {
230-
const updateOptions: any = {session};
231-
if ('videoDeviceId' in opts) updateOptions.videoDeviceId = opts.videoDeviceId;
232-
if ('audioDeviceId' in opts) updateOptions.audioDeviceId = opts.audioDeviceId;
233-
return this.updateOutgoingMedia(updateOptions);
230+
return this.updateOutgoingMedia({
231+
session,
232+
...opts
233+
});
234234
});
235235
return Promise.all(promises);
236236
}

0 commit comments

Comments
 (0)