summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/store/participantsStore.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/store/participantsStore.js b/src/store/participantsStore.js
index 1bd09bce1..540810092 100644
--- a/src/store/participantsStore.js
+++ b/src/store/participantsStore.js
@@ -371,12 +371,10 @@ const mutations = {
// when speaking has stopped, update the total talking time
if (currentSpeakingState && !speaking && state.speaking[token][sessionId].lastTimestamp) {
+ state.speaking[token][sessionId].speaking = false
state.speaking[token][sessionId].totalCountedTime += (currentTimestamp - state.speaking[token][sessionId].lastTimestamp)
- }
-
- // don't change state for consecutive identical signals
- if (currentSpeakingState !== speaking) {
- state.speaking[token][sessionId].speaking = speaking
+ } else if (!currentSpeakingState && speaking) {
+ state.speaking[token][sessionId].speaking = true
state.speaking[token][sessionId].lastTimestamp = currentTimestamp
}
},