From c33d8ca10579bb2863d49fa5a51e29d57d5950a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Calvi=C3=B1o=20S=C3=A1nchez?= Date: Thu, 10 Aug 2023 18:42:59 +0200 Subject: [PATCH] Fix speaking time sometimes updated when participants do not speak MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniel Calviño Sánchez --- src/store/participantsStore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/participantsStore.js b/src/store/participantsStore.js index 7140e1fde2..1bd09bce1f 100644 --- a/src/store/participantsStore.js +++ b/src/store/participantsStore.js @@ -370,7 +370,7 @@ const mutations = { const currentSpeakingState = state.speaking[token][sessionId].speaking // when speaking has stopped, update the total talking time - if (!speaking && state.speaking[token][sessionId].lastTimestamp) { + if (currentSpeakingState && !speaking && state.speaking[token][sessionId].lastTimestamp) { state.speaking[token][sessionId].totalCountedTime += (currentTimestamp - state.speaking[token][sessionId].lastTimestamp) }