added http service to prometheus, fixes sound Bug

This commit is contained in:
PxlLoewe
2025-07-26 12:33:41 -07:00
parent a09671036d
commit b9a4f5e8d3
5 changed files with 19 additions and 5 deletions

View File

@@ -251,10 +251,16 @@ export const useAudioStore = create<TalkState>((set, get) => ({
);
});
set({
remoteParticipants: room.numParticipants === 0 ? 0 : room.numParticipants - 1, // Unreliable and delayed
speakingParticipants,
});
if (oldSpeakingParticipants.length !== speakingParticipants.length) {
set({
remoteParticipants: room.numParticipants === 0 ? 0 : room.numParticipants - 1, // Unreliable and delayed
speakingParticipants,
});
} else {
set({
remoteParticipants: room.numParticipants === 0 ? 0 : room.numParticipants - 1, // Unreliable and delayed
});
}
}, 500);
} catch (error: Error | unknown) {
console.error("Error occured: ", error);