Skip to content

Commit

Permalink
fix bug with vc volume not showing
Browse files Browse the repository at this point in the history
  • Loading branch information
SupertigerDev committed Oct 14, 2024
1 parent 0b19e88 commit 2f7d4ec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/chat-api/store/useVoiceUsers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ const set = async (voiceUser: RawVoice) => {
addSignal,
addPeer,
};
console.log("test");

setVoiceUsers(voiceUser.channelId, voiceUser.userId, reconcile(newVoice));
};
Expand Down Expand Up @@ -311,7 +312,7 @@ const onStream = (voiceUser: VoiceUser | RawVoice, stream: MediaStream) => {
stream.onremovetrack = () => {
setVoiceUsers(voiceUser.channelId, voiceUser.userId, {
[streamType]: null,
voiceActivity: false,
...(streamType === "audioStream" ? { audio: mic, voiceActivity: false, } : {}),
});
stream.onremovetrack = null;
};
Expand All @@ -329,7 +330,7 @@ const onStream = (voiceUser: VoiceUser | RawVoice, stream: MediaStream) => {
}
setVoiceUsers(voiceUser.channelId, voiceUser.userId, {
[streamType]: stream,
audio: mic,
...(streamType === "audioStream" ? { audio: mic } : {}),
});
};

Expand Down

0 comments on commit 2f7d4ec

Please sign in to comment.