Skip to content

Commit

Permalink
fix: wrap with capability check
Browse files Browse the repository at this point in the history
Signed-off-by: DorraJaouad <[email protected]>
  • Loading branch information
DorraJaouad committed Dec 6, 2024
1 parent ab61d89 commit 4f8a3fe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/SettingsDialog/SettingsDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
:name="t('spreed', 'Choose devices')"
class="app-settings-section">
<MediaDevicesPreview />
<NcCheckboxRadioSwitch id="call-media"
<NcCheckboxRadioSwitch v-if="supportStartWithoutMedia"
id="call-media"
:checked="startWithoutMediaEnabled"
:disabled="mediaLoading"
type="switch"
Expand Down Expand Up @@ -228,6 +229,7 @@ const isBackgroundBlurredState = serverSupportsBackgroundBlurred
? loadState('spreed', 'force_enable_blur_filter', '') // 'yes', 'no', ''
: BrowserStorage.getItem('background-blurred') // 'true', 'false', null
const supportTypingStatus = getTalkConfig('local', 'chat', 'typing-privacy') !== undefined
const supportStartWithoutMedia = getTalkConfig('local', 'call', 'start-without-media')

export default {
name: 'SettingsDialog',
Expand Down Expand Up @@ -256,6 +258,7 @@ export default {
isBackgroundBlurred,
serverSupportsBackgroundBlurred,
customSettingsSections,
supportStartWithoutMedia,
}
},

Expand Down

0 comments on commit 4f8a3fe

Please sign in to comment.