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-02-11 09:58:08 +0300
committerJoas Schilling <coding@schilljs.com>2021-02-11 21:54:43 +0300
commit591f8b2b3d9e207e92077b16b1d585fbeef3c021 (patch)
tree98dab73049b2859b4721452d11da81bae06b1a73
parent86d18ae835716fddeacd401fcaa858c6a682ebab (diff)
Use ATTENDEE constants
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--src/components/CallView/shared/Video.vue7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/components/CallView/shared/Video.vue b/src/components/CallView/shared/Video.vue
index d7d1fe9f8..3da309e81 100644
--- a/src/components/CallView/shared/Video.vue
+++ b/src/components/CallView/shared/Video.vue
@@ -100,6 +100,7 @@ import AccountCircle from 'vue-material-design-icons/AccountCircle'
import VideoBottomBar from './VideoBottomBar'
import Screen from './Screen'
import { EventBus } from '../../../services/EventBus'
+import { ATTENDEE } from '../../../constants'
export default {
@@ -240,7 +241,7 @@ export default {
// Check data from participant list
if (this.participant?.actorType) {
- if (this.participant?.actorType === 'users' && this.participant?.actorId) {
+ if (this.participant?.actorType === ATTENDEE.ACTOR_TYPE.USERS && this.participant?.actorId) {
return this.participant.actorId
}
@@ -249,7 +250,7 @@ export default {
}
// Fallback to CallController::getPeers() endpoint
- if (this.peerData.actorType === 'users') {
+ if (this.peerData.actorType === ATTENDEE.ACTOR_TYPE.USERS) {
return this.peerData.actorId
}
@@ -279,7 +280,7 @@ export default {
if (!participantName) {
participantName = this.peerData.displayName
- if (!participantName && this.peerData.actorType === 'guests') {
+ if (!participantName && this.peerData.actorType === ATTENDEE.ACTOR_TYPE.GUESTS) {
participantName = t('spreed', 'Guest')
}
}