From 191c3b1f54987399555298e6395cca596b34c2e5 Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Tue, 28 Jan 2020 15:41:36 +1100 Subject: [PATCH] add back typing indicator and read receipt setting under privacy --- _locales/en/messages.json | 8 +++++++ .../session/settings/SessionSettings.tsx | 24 +++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 6ebf58fab..a712dc61c 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -1412,10 +1412,18 @@ "message": "Enable the sending and receiving of read receipts", "description": "Description of the read receipts setting" }, + "readReceiptSettingTitle": { + "message": "Read Receipts", + "description": "Title of the read receipts setting" + }, "typingIndicatorsSettingDescription": { "message": "Enable the sending and receiving of typing indicators", "description": "Description of the typing indicators setting" }, + "typingIndicatorsSettingTitle": { + "message": "Typing Indicators", + "description": "Title of the typing indicators setting" + }, "messageTTL": { "message": "Message TTL", "description": "Title of the Message TTL setting" diff --git a/ts/components/session/settings/SessionSettings.tsx b/ts/components/session/settings/SessionSettings.tsx index 34a7dfbc1..4e85700cf 100644 --- a/ts/components/session/settings/SessionSettings.tsx +++ b/ts/components/session/settings/SessionSettings.tsx @@ -406,6 +406,30 @@ export class SettingsView extends React.Component { defaultValue: 24, }, }, + { + id: 'read-receipt-setting', + title: window.i18n('readReceiptSettingTitle'), + description: window.i18n('readReceiptSettingDescription'), + hidden: false, + type: SessionSettingType.Toggle, + category: SessionSettingCategory.Privacy, + setFn: undefined, + comparisonValue: undefined, + onClick: undefined, + content: {}, + }, + { + id: 'typing-indicators-setting', + title: window.i18n('typingIndicatorsSettingTitle'), + description: window.i18n('typingIndicatorsSettingDescription'), + hidden: false, + type: SessionSettingType.Toggle, + category: SessionSettingCategory.Privacy, + setFn: undefined, + comparisonValue: undefined, + onClick: undefined, + content: {}, + }, { id: 'set-password', title: window.i18n('setAccountPasswordTitle'),