diff --git a/src/components/RightSidebar/Participants/Participant.vue b/src/components/RightSidebar/Participants/Participant.vue index 6f90d2bb9da..fb141e3c9aa 100644 --- a/src/components/RightSidebar/Participants/Participant.vue +++ b/src/components/RightSidebar/Participants/Participant.vue @@ -866,17 +866,21 @@ export default { }, }, watch: { - isParticipantSpeaking(speaking) { - if (speaking) { - if (!this.speakingInterval) { - this.speakingInterval = setInterval(this.computeElapsedTime, 1000) - } - } else { - if (speaking === undefined) { - this.timeSpeaking = 0 + isParticipantSpeaking: { + immediate: true, + handler(speaking) { + this.computeElapsedTime() + if (speaking) { + if (!this.speakingInterval) { + this.speakingInterval = setInterval(this.computeElapsedTime, 1000) + } + } else { + if (speaking === undefined) { + this.timeSpeaking = 0 + } + clearInterval(this.speakingInterval) + this.speakingInterval = null } - clearInterval(this.speakingInterval) - this.speakingInterval = null } },