fixing merge conflicts

pull/2000/head
warrickct 3 years ago
parent 86a9253144
commit 043c2fa99f

@ -2,6 +2,7 @@ import React from 'react';
// tslint:disable-next-line: no-submodule-imports
import useUpdate from 'react-use/lib/useUpdate';
import { sessionPassword, updateConfirmModal } from '../../../../state/ducks/modalDialog';
import { toggleMessageRequests } from '../../../../state/ducks/userConfig';
import { PasswordAction } from '../../../dialog/SessionPasswordDialog';
import { SessionButtonColor } from '../../SessionButton';
import { SessionSettingButtonItem, SessionToggleWithDescription } from '../SessionSettingListItem';
@ -107,6 +108,17 @@ export const SettingsCategoryPrivacy = (props: {
description={window.i18n('autoUpdateSettingDescription')}
active={Boolean(window.getSettingValue(settingsAutoUpdate))}
/>
<SessionToggleWithDescription
onClickToggle={() => {
// const old = Boolean(window.getSettingValue(settingsAutoUpdate));
// window.setSettingValue(settingsAutoUpdate, !old);
window.inboxStore?.dispatch(toggleMessageRequests());
forceUpdate();
}}
title={window.i18n('messageRequests')}
description={window.i18n('messageRequestsDescription')}
active={Boolean(window.getSettingValue(settingsAutoUpdate))}
/>
{!props.hasPassword && (
<SessionSettingButtonItem
title={window.i18n('setAccountPasswordTitle')}

6
ts/window.d.ts vendored

@ -43,6 +43,12 @@ declare global {
log: any;
lokiFeatureFlags: {
useOnionRequests: boolean;
useFileOnionRequests: boolean;
useFileOnionRequestsV2: boolean;
padOutgoingAttachments: boolean;
enablePinConversations: boolean;
useUnsendRequests: boolean;
useMessageRequests: boolean;
useCallMessage: boolean;
};
lokiSnodeAPI: LokiSnodeAPI;

Loading…
Cancel
Save