summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2023-08-11 11:28:01 +0200
committerGitHub <noreply@github.com>2023-08-11 11:28:01 +0200
commit012f87e4e346e56069c0b646d883b1881462a54a (patch)
tree3ed28b93b2bd8ade7f510739efedbef6ca7f0473
parent9fe8d07628d7e35d07a6a709d451061d5ce526f5 (diff)
parentbf14f9824477fafee926fe2a679368ab7a95043d (diff)
Merge pull request #10178 from nextcloud/backport/10174/stable27
[stable27] Fix speaking time sometimes updated when participants do not speak
-rw-r--r--src/store/participantsStore.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/store/participantsStore.js b/src/store/participantsStore.js
index 7140e1fde..1bd09bce1 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)
}