Skip to content

Commit

Permalink
fixup! force show MediaSettings if consent is required
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
  • Loading branch information
Antreesy committed Oct 18, 2023
1 parent 688edc3 commit 4ebb9e9
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@
id="notifications"
:name="t('spreed', 'Personal')">
<NcCheckboxRadioSwitch type="switch"
:disabled="conversation.recordingConsent"
:disabled="recordingConsentRequired"
:checked="showMediaSettings"
@update:checked="setShowMediaSettings">
{{ t('spreed', 'Always show the device preview screen before joining a call in this conversation.') }}
</NcCheckboxRadioSwitch>
<p v-if="conversation.recordingConsent">
<p v-if="recordingConsentRequired">
{{ t('spreed', 'The consent to be recorded will be required for each participant before joining every call.') }}
</p>
<NotificationsSettings :conversation="conversation" />
Expand Down Expand Up @@ -251,6 +251,10 @@ export default {

recordingConsentAvailable() {
return recordingEnabled && recordingConsentCapability && recordingConsent
},

recordingConsentRequired() {
return this.conversation.recordingConsent === CALL.RECORDING_CONSENT.REQUIRED
}
},

Expand Down

0 comments on commit 4ebb9e9

Please sign in to comment.