From cd1a94071983acdf2f5dec746bbb5e536f16c182 Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Tue, 15 Sep 2020 10:32:16 +1000 Subject: [PATCH] add back Copy Session ID but show it only for user context click --- _locales/en/messages.json | 5 +++++ ts/session/utils/Menu.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index c19d175ca..d4c769bfc 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -1072,6 +1072,11 @@ "description": "Copy to clipboard button text", "androidKey": "copy" }, + "copySessionID": { + "message": "Copy Session ID", + "description": "Copy to clipboard session ID", + "androidKey": "activity_conversation_menu_copy_session_id" + }, "save": { "message": "Save", "description": "Used as a 'commit changes' button in the Caption Editor for outgoing image attachments", diff --git a/ts/session/utils/Menu.tsx b/ts/session/utils/Menu.tsx index 2fe4b77f6..812cca30c 100644 --- a/ts/session/utils/Menu.tsx +++ b/ts/session/utils/Menu.tsx @@ -212,7 +212,7 @@ export function getCopyMenuItem( i18n: LocalizerType ): JSX.Element | null { if (showCopyId(Boolean(isPublic), Boolean(isRss), Boolean(isGroup))) { - const copyIdLabel = i18n('editMenuCopy'); + const copyIdLabel = i18n('copySessionID'); return {copyIdLabel}; } return null;