disable settings for video call if featureflag is off

pull/1988/head
Audric Ackermann 3 years ago
parent dd281de903
commit df5872a5c7
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -66,15 +66,17 @@ export const SettingsCategoryPrivacy = (props: {
active={Boolean(window.getSettingValue('media-permissions'))}
/>
<SessionToggleWithDescription
onClickToggle={async () => {
await toggleCallMediaPermissions(forceUpdate);
forceUpdate();
}}
title={window.i18n('callMediaPermissionsTitle')}
description={window.i18n('callMediaPermissionsDescription')}
active={Boolean(window.getCallMediaPermissions())}
/>
{window.lokiFeatureFlags.useCallMessage && (
<SessionToggleWithDescription
onClickToggle={async () => {
await toggleCallMediaPermissions(forceUpdate);
forceUpdate();
}}
title={window.i18n('callMediaPermissionsTitle')}
description={window.i18n('callMediaPermissionsDescription')}
active={Boolean(window.getCallMediaPermissions())}
/>
)}
<SessionToggleWithDescription
onClickToggle={() => {
const old = Boolean(window.getSettingValue(settingsReadReceipt));

Loading…
Cancel
Save