From 08e8a7c6e9e47e42ec693c59d279c7020f929558 Mon Sep 17 00:00:00 2001
From: automated-signal <37887102+automated-signal@users.noreply.github.com>
Date: Mon, 21 Oct 2024 13:25:01 -0500
Subject: [PATCH] Clarify behavior of group deletion
---
_locales/en/messages.json | 16 ++++++++++++++++
.../conversation/ConversationHeader.tsx | 10 +++++-----
ts/model-types.d.ts | 1 +
ts/models/conversations.ts | 18 +++++++++++++++++-
ts/state/ducks/conversations.ts | 18 +++++++++++++++++-
ts/state/selectors/conversations.ts | 3 ++-
ts/util/filterAndSortConversations.ts | 2 +-
ts/util/getConversation.ts | 3 +++
8 files changed, 62 insertions(+), 9 deletions(-)
diff --git a/_locales/en/messages.json b/_locales/en/messages.json
index 50464b2edd3d..8802b83b3183 100644
--- a/_locales/en/messages.json
+++ b/_locales/en/messages.json
@@ -1338,6 +1338,22 @@
"messageformat": "All messages in this chat will be deleted from all your devices. You can still search for this chat after you delete messages.",
"description": "Description for confirmation modal to delete all messages in a conversation"
},
+ "icu:deleteConversation": {
+ "messageformat": "Delete",
+ "description": "Menu item for deleting a conversation (including messages), title case."
+ },
+ "icu:ConversationHeader__DeleteConversationConfirmation__title": {
+ "messageformat": "Delete chat?",
+ "description": "Conversation Header > Delete Action > Delete Messages Confirmation Modal > Title. Previously known as icu:ConversationHeader__DeleteMessagesConfirmation__title"
+ },
+ "icu:ConversationHeader__DeleteConversationConfirmation__description": {
+ "messageformat": "All messages in this chat will be deleted from this device.",
+ "description": "Description for confirmation modal to delete a conversation"
+ },
+ "icu:ConversationHeader__DeleteConversationConfirmation__description-with-sync": {
+ "messageformat": "All messages in this chat will be deleted from all your devices.",
+ "description": "Description for confirmation modal to delete a conversation"
+ },
"icu:ConversationHeader__ContextMenu__LeaveGroupAction__title": {
"messageformat": "Leave group",
"description": "This is a button to leave a group"
diff --git a/ts/components/conversation/ConversationHeader.tsx b/ts/components/conversation/ConversationHeader.tsx
index 24a86d645613..62a1a7909df5 100644
--- a/ts/components/conversation/ConversationHeader.tsx
+++ b/ts/components/conversation/ConversationHeader.tsx
@@ -654,7 +654,7 @@ function HeaderMenu({
)}
);
@@ -792,7 +792,7 @@ function HeaderMenu({
)}
{isGroup && (