diff --git a/custom/shared/contexts/ParticipantsProvider.js b/custom/shared/contexts/ParticipantsProvider.js index 64843f6..50db416 100644 --- a/custom/shared/contexts/ParticipantsProvider.js +++ b/custom/shared/contexts/ParticipantsProvider.js @@ -140,11 +140,7 @@ export const ParticipantsProvider = ({ children }) => { const lastActiveSpeaker = sorted?.[0]; - if (lastActiveSpeaker) { - return lastActiveSpeaker; - } - - return localParticipant; + return lastActiveSpeaker || localParticipant; }, [activeParticipant, localParticipant, participants]); /**