Browse Source

Merge pull request #10174 from nextcloud/fix-speaking-time-sometimes-updated-when-participants-do-not-speak

Fix speaking time sometimes updated when participants do not speak
pull/10180/head
Daniel Calviño Sánchez 2 years ago
committed by GitHub
parent
commit
a060a231b4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/store/participantsStore.js

2
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)
}

Loading…
Cancel
Save