Skip to content

Commit

Permalink
state の localMediaStream を更新する条件を変更する
Browse files Browse the repository at this point in the history
  • Loading branch information
tnamao committed Dec 13, 2023
1 parent 1e5ee5a commit ddc7958
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1357,7 +1357,7 @@ export const connectSora = () => {
// disconnect 時に stream を止めないためのハック
sora.stream = null
dispatch(slice.actions.setSora(sora))
if (mediaStream) {
if (mediaStream && (state.soraContents.localMediaStream === null || forceCreateMediaStream)) {
dispatch(slice.actions.setLocalMediaStream(mediaStream))
}
if (gainNode) {
Expand Down

0 comments on commit ddc7958

Please sign in to comment.