summaryrefslogtreecommitdiffstats
path: root/src/components/TopBar/CallButton.vue
diff options
context:
space:
mode:
authorMarco Ambrosini <marcoambrosini@pm.me>2022-06-01 14:15:11 +0200
committerMarco Ambrosini <marcoambrosini@pm.me>2022-06-03 14:32:49 +0200
commita22b31b3cb94b57ea1b65a489d9d900e91852957 (patch)
tree6070c8c075934ea1b41151c0fcb49d2386753264 /src/components/TopBar/CallButton.vue
parentb259ec511d2ec8e7fd5eb0a6f954242ad6dbcdec (diff)
Pass in silent as a parameter to the joinCall function
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
Diffstat (limited to 'src/components/TopBar/CallButton.vue')
-rw-r--r--src/components/TopBar/CallButton.vue15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/components/TopBar/CallButton.vue b/src/components/TopBar/CallButton.vue
index 4494402d4..c0d768655 100644
--- a/src/components/TopBar/CallButton.vue
+++ b/src/components/TopBar/CallButton.vue
@@ -122,6 +122,15 @@ export default {
type: Boolean,
default: false,
},
+
+ /**
+ * Whether the call should trigger a notifications and sound
+ * for other participants or not
+ */
+ silentCall: {
+ type: Boolean,
+ default: false,
+ },
},
data() {
@@ -187,7 +196,7 @@ export default {
return t('spreed', 'Join call')
}
- return t('spreed', 'Start call')
+ return this.silentCall ? t('spreed', 'Start call silently') : t('spreed', 'Start call')
},
startCallToolTip() {
@@ -254,6 +263,9 @@ export default {
return [PARTICIPANT.TYPE.OWNER, PARTICIPANT.TYPE.MODERATOR, PARTICIPANT.TYPE.GUEST_MODERATOR].indexOf(participantType) !== -1
},
+ /**
+ * Starts or joins a call
+ */
async joinCall() {
let flags = PARTICIPANT.CALL_FLAG.IN_CALL
if (this.conversation.permissions & PARTICIPANT.PERMISSIONS.PUBLISH_AUDIO) {
@@ -273,6 +285,7 @@ export default {
token: this.token,
participantIdentifier: this.$store.getters.getParticipantIdentifier(),
flags,
+ silent: this.silentCall,
})
this.loading = false
},