diff options
author | Joas Schilling <coding@schilljs.com> | 2021-10-21 12:15:22 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-10-21 12:27:28 +0300 |
commit | 74c20b174b36dbf027c34e0647321219ff4e1d15 (patch) | |
tree | 88ec3ae81a56c80c524587a2b7f5493c0e7b5774 /src/mixins | |
parent | a9a19ab24a8a8b56514459425342f3eea6516af9 (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.js | 9 |
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) }, }, } |