Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-10-21 12:15:22 +0300
committerJoas Schilling <coding@schilljs.com>2021-10-21 12:27:28 +0300
commit74c20b174b36dbf027c34e0647321219ff4e1d15 (patch)
tree88ec3ae81a56c80c524587a2b7f5493c0e7b5774 /src/mixins
parenta9a19ab24a8a8b56514459425342f3eea6516af9 (diff)
Only use the attendeeId based object
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'src/mixins')
-rw-r--r--src/mixins/participant.js9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/mixins/participant.js b/src/mixins/participant.js
index 92c21e8f8..55a13a209 100644
--- a/src/mixins/participant.js
+++ b/src/mixins/participant.js
@@ -35,14 +35,9 @@ export default {
}
}
- const participantIndex = this.$store.getters.getParticipantIndex(token, this.$store.getters.getParticipantIdentifier())
- if (participantIndex === -1) {
- return {
- inCall: PARTICIPANT.CALL_FLAG.DISCONNECTED,
- }
+ return this.$store.getters.findParticipant(token, this.$store.getters.getParticipantIdentifier()) || {
+ inCall: PARTICIPANT.CALL_FLAG.DISCONNECTED,
}
-
- return this.$store.getters.getParticipant(token, participantIndex)
},
},
}