Delete Sync: Show different text when deleting entire conversation
This commit is contained in:
parent
abf33f98cd
commit
71ae6ea93a
2 changed files with 13 additions and 3 deletions
|
@ -1318,6 +1318,10 @@
|
||||||
"messageformat": "All messages in this chat will be deleted from this device. You can still search for this chat after you delete messages.",
|
"messageformat": "All messages in this chat will be deleted from this device. You can still search for this chat after you delete messages.",
|
||||||
"description": "Description for confirmation modal to delete all messages in a conversation"
|
"description": "Description for confirmation modal to delete all messages in a conversation"
|
||||||
},
|
},
|
||||||
|
"icu:ConversationHeader__DeleteMessagesInConversationConfirmation__description-with-sync": {
|
||||||
|
"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:ConversationHeader__ContextMenu__LeaveGroupAction__title": {
|
"icu:ConversationHeader__ContextMenu__LeaveGroupAction__title": {
|
||||||
"messageformat": "Leave group",
|
"messageformat": "Leave group",
|
||||||
"description": "This is a button to leave a group"
|
"description": "This is a button to leave a group"
|
||||||
|
|
|
@ -957,6 +957,14 @@ function DeleteMessagesConfirmationDialog({
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const dialogBody = isDeleteSyncSendEnabled
|
||||||
|
? i18n(
|
||||||
|
'icu:ConversationHeader__DeleteMessagesInConversationConfirmation__description-with-sync'
|
||||||
|
)
|
||||||
|
: i18n(
|
||||||
|
'icu:ConversationHeader__DeleteMessagesInConversationConfirmation__description'
|
||||||
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ConfirmationDialog
|
<ConfirmationDialog
|
||||||
dialogName="ConversationHeader.destroyMessages"
|
dialogName="ConversationHeader.destroyMessages"
|
||||||
|
@ -973,9 +981,7 @@ function DeleteMessagesConfirmationDialog({
|
||||||
i18n={i18n}
|
i18n={i18n}
|
||||||
onClose={onClose}
|
onClose={onClose}
|
||||||
>
|
>
|
||||||
{i18n(
|
{dialogBody}
|
||||||
'icu:ConversationHeader__DeleteMessagesInConversationConfirmation__description'
|
|
||||||
)}
|
|
||||||
</ConfirmationDialog>
|
</ConfirmationDialog>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue