summaryrefslogtreecommitdiffstats
path: root/src/components/TopBar/CallButton.vue
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-01-23 15:11:43 +0100
committerJoas Schilling <coding@schilljs.com>2023-01-23 21:25:03 +0100
commitf3bfa827fd612f96277c5cf5caa6081484725c22 (patch)
tree79eb28d2c1e188cfff1cb63c767599784a357a95 /src/components/TopBar/CallButton.vue
parenteca2446c5a6b35c6eeff723e0c2e60ff9fafa531 (diff)
Enforce device picker and show a warning there
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'src/components/TopBar/CallButton.vue')
-rw-r--r--src/components/TopBar/CallButton.vue8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/components/TopBar/CallButton.vue b/src/components/TopBar/CallButton.vue
index e6f44b5f1..87e7a4355 100644
--- a/src/components/TopBar/CallButton.vue
+++ b/src/components/TopBar/CallButton.vue
@@ -72,7 +72,7 @@
</template>
<script>
-import { CONVERSATION, PARTICIPANT } from '../../constants.js'
+import { CALL, CONVERSATION, PARTICIPANT } from '../../constants.js'
import browserCheck from '../../mixins/browserCheck.js'
import isInCall from '../../mixins/isInCall.js'
import isInLobby from '../../mixins/isInLobby.js'
@@ -148,6 +148,10 @@ export default {
return this.$store.getters.conversation(this.token) || this.$store.getters.dummyConversation
},
+ isRecording() {
+ return this.conversation.callRecording !== CALL.RECORDING.OFF
+ },
+
participantType() {
return this.conversation.participantType
},
@@ -297,7 +301,7 @@ export default {
const shouldShowDeviceCheckerScreen = (BrowserStorage.getItem('showDeviceChecker' + this.token) === null
|| BrowserStorage.getItem('showDeviceChecker' + this.token) === 'true') && !this.forceJoinCall
console.debug(shouldShowDeviceCheckerScreen)
- if (shouldShowDeviceCheckerScreen) {
+ if ((this.isRecording && !this.forceJoinCall) || shouldShowDeviceCheckerScreen) {
emit('talk:device-checker:show')
} else {
emit('talk:device-checker:hide')