From fe36ce9d912456fbaccc512d4343755cf6e88c8c Mon Sep 17 00:00:00 2001 From: rayane-djouah <77965000+rayane-djouah@users.noreply.github.com> Date: Tue, 13 Feb 2024 21:16:28 +0100 Subject: [PATCH 01/10] Update archive messages for threads --- src/components/ArchivedReportFooter.tsx | 7 +++++-- src/languages/en.ts | 11 ++++++----- src/libs/ReportUtils.ts | 11 +++++++++-- 3 files changed, 20 insertions(+), 9 deletions(-) diff --git a/src/components/ArchivedReportFooter.tsx b/src/components/ArchivedReportFooter.tsx index 083c8340baa6..c86fa42ea9fb 100644 --- a/src/components/ArchivedReportFooter.tsx +++ b/src/components/ArchivedReportFooter.tsx @@ -11,6 +11,7 @@ import CONST from '@src/CONST'; import ONYXKEYS from '@src/ONYXKEYS'; import type {PersonalDetailsList, Report, ReportAction} from '@src/types/onyx'; import Banner from './Banner'; +import { getCurrentUserAccountID } from '@libs/actions/Report'; type ArchivedReportFooterOnyxProps = { /** The reason this report was archived */ @@ -31,8 +32,9 @@ function ArchivedReportFooter({report, reportClosedAction, personalDetails = {}} const originalMessage = reportClosedAction?.actionName === CONST.REPORT.ACTIONS.TYPE.CLOSED ? reportClosedAction.originalMessage : null; const archiveReason = originalMessage?.reason ?? CONST.REPORT.ARCHIVE_REASON.DEFAULT; - let displayName = PersonalDetailsUtils.getDisplayNameOrDefault(personalDetails?.[report?.ownerAccountID ?? 0]); - + const actorPersonalDetails = personalDetails?.[reportClosedAction?.actorAccountID ?? 0]; + let displayName = PersonalDetailsUtils.getDisplayNameOrDefault(actorPersonalDetails); + let oldDisplayName: string | undefined; if (archiveReason === CONST.REPORT.ARCHIVE_REASON.ACCOUNT_MERGED) { const newAccountID = originalMessage?.newAccountID; @@ -56,6 +58,7 @@ function ArchivedReportFooter({report, reportClosedAction, personalDetails = {}} displayName: `${displayName}`, oldDisplayName: `${oldDisplayName}`, policyName: `${policyName}`, + shouldUseYou: actorPersonalDetails?.accountID === getCurrentUserAccountID(), }) : translate(`reportArchiveReasons.${archiveReason}`); diff --git a/src/languages/en.ts b/src/languages/en.ts index f24b0e3e2438..f1755a1a6b1b 100755 --- a/src/languages/en.ts +++ b/src/languages/en.ts @@ -508,13 +508,14 @@ export default { reportArchiveReasons: { [CONST.REPORT.ARCHIVE_REASON.DEFAULT]: 'This chat room has been archived.', [CONST.REPORT.ARCHIVE_REASON.ACCOUNT_CLOSED]: ({displayName}: ReportArchiveReasonsClosedParams) => - `This workspace chat is no longer active because ${displayName} closed their account.`, + `This chat is no longer active because ${displayName} closed their account.`, [CONST.REPORT.ARCHIVE_REASON.ACCOUNT_MERGED]: ({displayName, oldDisplayName}: ReportArchiveReasonsMergedParams) => - `This workspace chat is no longer active because ${oldDisplayName} has merged their account with ${displayName}.`, - [CONST.REPORT.ARCHIVE_REASON.REMOVED_FROM_POLICY]: ({displayName, policyName}: ReportArchiveReasonsRemovedFromPolicyParams) => - `This workspace chat is no longer active because ${displayName} is no longer a member of the ${policyName} workspace.`, + `This chat is no longer active because ${oldDisplayName} has merged their account with ${displayName}.`, + [CONST.REPORT.ARCHIVE_REASON.REMOVED_FROM_POLICY]: ({displayName, policyName, shouldUseYou}: ReportArchiveReasonsRemovedFromPolicyParams) => + shouldUseYou ? `This chat is no longer active because you are no longer a member of the ${policyName} workspace.` + : `This chat is no longer active because ${displayName} is no longer a member of the ${policyName} workspace.`, [CONST.REPORT.ARCHIVE_REASON.POLICY_DELETED]: ({policyName}: ReportArchiveReasonsPolicyDeletedParams) => - `This workspace chat is no longer active because ${policyName} is no longer an active workspace.`, + `This chat is no longer active because ${policyName} is no longer an active workspace.`, }, writeCapabilityPage: { label: 'Who can post', diff --git a/src/libs/ReportUtils.ts b/src/libs/ReportUtils.ts index 26280f95447d..48f853633bc1 100644 --- a/src/libs/ReportUtils.ts +++ b/src/libs/ReportUtils.ts @@ -2444,7 +2444,11 @@ function getReportName(report: OnyxEntry, policy: OnyxEntry = nu const parentReportAction = ReportActionsUtils.getParentReportAction(report); if (isChatThread(report)) { if (!isEmptyObject(parentReportAction) && ReportActionsUtils.isTransactionThread(parentReportAction)) { - return getTransactionReportName(parentReportAction); + formattedName = getTransactionReportName(parentReportAction); + if (isArchivedRoom(report)) { + formattedName += ` (${Localize.translateLocal('common.archived')})`; + } + return formattedName; } const isAttachment = ReportActionsUtils.isReportActionAttachment(!isEmptyObject(parentReportAction) ? parentReportAction : null); @@ -2462,6 +2466,9 @@ function getReportName(report: OnyxEntry, policy: OnyxEntry = nu if (isAdminRoom(report) || isUserCreatedPolicyRoom(report)) { return getAdminRoomInvitedParticipants(parentReportAction, parentReportActionMessage); } + if (parentReportActionMessage && isArchivedRoom(report)) { + return `${parentReportActionMessage} (${Localize.translateLocal('common.archived')})`; + } return parentReportActionMessage || Localize.translateLocal('parentReportAction.deletedMessage'); } @@ -3615,7 +3622,7 @@ function buildTransactionThread(reportAction: OnyxEntry, moneyRequ getTransactionReportName(reportAction), undefined, getReport(moneyRequestReportID)?.policyID ?? CONST.POLICY.OWNER_EMAIL_FAKE, - CONST.POLICY.OWNER_ACCOUNT_ID_FAKE, + getReport(moneyRequestReportID)?.ownerAccountID ?? CONST.POLICY.OWNER_ACCOUNT_ID_FAKE, false, '', undefined, From 0cd9f91e0bf12bdb03c56cc4e1fc8b9e97dd265f Mon Sep 17 00:00:00 2001 From: rayane-djouah <77965000+rayane-djouah@users.noreply.github.com> Date: Tue, 13 Feb 2024 21:19:19 +0100 Subject: [PATCH 02/10] fix type error --- src/languages/types.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/languages/types.ts b/src/languages/types.ts index c9442c6560a3..59c6119b781c 100644 --- a/src/languages/types.ts +++ b/src/languages/types.ts @@ -90,6 +90,7 @@ type ReportArchiveReasonsMergedParams = { type ReportArchiveReasonsRemovedFromPolicyParams = { displayName: string; policyName: string; + shouldUseYou: boolean; }; type ReportArchiveReasonsPolicyDeletedParams = { From bb19a7bf7071b63710cf0b8b51f0b3870323f381 Mon Sep 17 00:00:00 2001 From: rayane-djouah <77965000+rayane-djouah@users.noreply.github.com> Date: Wed, 14 Feb 2024 01:03:27 +0100 Subject: [PATCH 03/10] undo unecessary change --- src/libs/ReportUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/ReportUtils.ts b/src/libs/ReportUtils.ts index 48f853633bc1..efaecd0fe476 100644 --- a/src/libs/ReportUtils.ts +++ b/src/libs/ReportUtils.ts @@ -3622,7 +3622,7 @@ function buildTransactionThread(reportAction: OnyxEntry, moneyRequ getTransactionReportName(reportAction), undefined, getReport(moneyRequestReportID)?.policyID ?? CONST.POLICY.OWNER_EMAIL_FAKE, - getReport(moneyRequestReportID)?.ownerAccountID ?? CONST.POLICY.OWNER_ACCOUNT_ID_FAKE, + CONST.POLICY.OWNER_ACCOUNT_ID_FAKE, false, '', undefined, From 233f66d4e83182a2a8b50ba4b62ffdbaac67c435 Mon Sep 17 00:00:00 2001 From: rayane-djouah <77965000+rayane-djouah@users.noreply.github.com> Date: Sun, 25 Feb 2024 22:19:25 +0100 Subject: [PATCH 04/10] prettier --- src/components/ArchivedReportFooter.tsx | 4 ++-- src/languages/en.ts | 8 ++++---- src/libs/ReportUtils.ts | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/ArchivedReportFooter.tsx b/src/components/ArchivedReportFooter.tsx index c86fa42ea9fb..9713e40136a2 100644 --- a/src/components/ArchivedReportFooter.tsx +++ b/src/components/ArchivedReportFooter.tsx @@ -4,6 +4,7 @@ import type {OnyxEntry} from 'react-native-onyx'; import {withOnyx} from 'react-native-onyx'; import useLocalize from '@hooks/useLocalize'; import useThemeStyles from '@hooks/useThemeStyles'; +import {getCurrentUserAccountID} from '@libs/actions/Report'; import * as PersonalDetailsUtils from '@libs/PersonalDetailsUtils'; import * as ReportActionsUtils from '@libs/ReportActionsUtils'; import * as ReportUtils from '@libs/ReportUtils'; @@ -11,7 +12,6 @@ import CONST from '@src/CONST'; import ONYXKEYS from '@src/ONYXKEYS'; import type {PersonalDetailsList, Report, ReportAction} from '@src/types/onyx'; import Banner from './Banner'; -import { getCurrentUserAccountID } from '@libs/actions/Report'; type ArchivedReportFooterOnyxProps = { /** The reason this report was archived */ @@ -34,7 +34,7 @@ function ArchivedReportFooter({report, reportClosedAction, personalDetails = {}} const archiveReason = originalMessage?.reason ?? CONST.REPORT.ARCHIVE_REASON.DEFAULT; const actorPersonalDetails = personalDetails?.[reportClosedAction?.actorAccountID ?? 0]; let displayName = PersonalDetailsUtils.getDisplayNameOrDefault(actorPersonalDetails); - + let oldDisplayName: string | undefined; if (archiveReason === CONST.REPORT.ARCHIVE_REASON.ACCOUNT_MERGED) { const newAccountID = originalMessage?.newAccountID; diff --git a/src/languages/en.ts b/src/languages/en.ts index f506e8e4f0e9..17c66ab0df47 100755 --- a/src/languages/en.ts +++ b/src/languages/en.ts @@ -516,13 +516,13 @@ export default { }, reportArchiveReasons: { [CONST.REPORT.ARCHIVE_REASON.DEFAULT]: 'This chat room has been archived.', - [CONST.REPORT.ARCHIVE_REASON.ACCOUNT_CLOSED]: ({displayName}: ReportArchiveReasonsClosedParams) => - `This chat is no longer active because ${displayName} closed their account.`, + [CONST.REPORT.ARCHIVE_REASON.ACCOUNT_CLOSED]: ({displayName}: ReportArchiveReasonsClosedParams) => `This chat is no longer active because ${displayName} closed their account.`, [CONST.REPORT.ARCHIVE_REASON.ACCOUNT_MERGED]: ({displayName, oldDisplayName}: ReportArchiveReasonsMergedParams) => `This chat is no longer active because ${oldDisplayName} has merged their account with ${displayName}.`, [CONST.REPORT.ARCHIVE_REASON.REMOVED_FROM_POLICY]: ({displayName, policyName, shouldUseYou}: ReportArchiveReasonsRemovedFromPolicyParams) => - shouldUseYou ? `This chat is no longer active because you are no longer a member of the ${policyName} workspace.` - : `This chat is no longer active because ${displayName} is no longer a member of the ${policyName} workspace.`, + shouldUseYou + ? `This chat is no longer active because you are no longer a member of the ${policyName} workspace.` + : `This chat is no longer active because ${displayName} is no longer a member of the ${policyName} workspace.`, [CONST.REPORT.ARCHIVE_REASON.POLICY_DELETED]: ({policyName}: ReportArchiveReasonsPolicyDeletedParams) => `This chat is no longer active because ${policyName} is no longer an active workspace.`, }, diff --git a/src/libs/ReportUtils.ts b/src/libs/ReportUtils.ts index fa6113e543aa..d88091e298b4 100644 --- a/src/libs/ReportUtils.ts +++ b/src/libs/ReportUtils.ts @@ -2522,7 +2522,7 @@ function getReportName(report: OnyxEntry, policy: OnyxEntry = nu formattedName = getTransactionReportName(parentReportAction); if (isArchivedRoom(report)) { formattedName += ` (${Localize.translateLocal('common.archived')})`; - } + } return formattedName; } @@ -2547,7 +2547,7 @@ function getReportName(report: OnyxEntry, policy: OnyxEntry = nu } if (parentReportActionMessage && isArchivedRoom(report)) { return `${parentReportActionMessage} (${Localize.translateLocal('common.archived')})`; - } + } return parentReportActionMessage; } From 17efb7c1a14cdec4ba13798311df47a22a998777 Mon Sep 17 00:00:00 2001 From: rayane-djouah <77965000+rayane-djouah@users.noreply.github.com> Date: Sun, 25 Feb 2024 22:23:56 +0100 Subject: [PATCH 05/10] fix typescript error --- src/languages/en.ts | 2 +- src/languages/types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/languages/en.ts b/src/languages/en.ts index 17c66ab0df47..861c63b3b1b4 100755 --- a/src/languages/en.ts +++ b/src/languages/en.ts @@ -519,7 +519,7 @@ export default { [CONST.REPORT.ARCHIVE_REASON.ACCOUNT_CLOSED]: ({displayName}: ReportArchiveReasonsClosedParams) => `This chat is no longer active because ${displayName} closed their account.`, [CONST.REPORT.ARCHIVE_REASON.ACCOUNT_MERGED]: ({displayName, oldDisplayName}: ReportArchiveReasonsMergedParams) => `This chat is no longer active because ${oldDisplayName} has merged their account with ${displayName}.`, - [CONST.REPORT.ARCHIVE_REASON.REMOVED_FROM_POLICY]: ({displayName, policyName, shouldUseYou}: ReportArchiveReasonsRemovedFromPolicyParams) => + [CONST.REPORT.ARCHIVE_REASON.REMOVED_FROM_POLICY]: ({displayName, policyName, shouldUseYou = false}: ReportArchiveReasonsRemovedFromPolicyParams) => shouldUseYou ? `This chat is no longer active because you are no longer a member of the ${policyName} workspace.` : `This chat is no longer active because ${displayName} is no longer a member of the ${policyName} workspace.`, diff --git a/src/languages/types.ts b/src/languages/types.ts index 90765e38595e..ed993f79f171 100644 --- a/src/languages/types.ts +++ b/src/languages/types.ts @@ -90,7 +90,7 @@ type ReportArchiveReasonsMergedParams = { type ReportArchiveReasonsRemovedFromPolicyParams = { displayName: string; policyName: string; - shouldUseYou: boolean; + shouldUseYou?: boolean; }; type ReportArchiveReasonsPolicyDeletedParams = { From 3e1b02f03c16f0c2babac64d95293653521e5cde Mon Sep 17 00:00:00 2001 From: rayane-djouah <77965000+rayane-djouah@users.noreply.github.com> Date: Sun, 25 Feb 2024 22:30:15 +0100 Subject: [PATCH 06/10] spanish translation --- src/languages/es.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/languages/es.ts b/src/languages/es.ts index c9ff087d0de7..802908d8c182 100644 --- a/src/languages/es.ts +++ b/src/languages/es.ts @@ -509,14 +509,15 @@ export default { }, reportArchiveReasons: { [CONST.REPORT.ARCHIVE_REASON.DEFAULT]: 'Esta sala de chat ha sido eliminada.', - [CONST.REPORT.ARCHIVE_REASON.ACCOUNT_CLOSED]: ({displayName}: ReportArchiveReasonsClosedParams) => - `Este chat de espacio de trabajo esta desactivado porque ${displayName} ha cerrado su cuenta.`, + [CONST.REPORT.ARCHIVE_REASON.ACCOUNT_CLOSED]: ({displayName}: ReportArchiveReasonsClosedParams) => `Este chat esta desactivado porque ${displayName} ha cerrado su cuenta.`, [CONST.REPORT.ARCHIVE_REASON.ACCOUNT_MERGED]: ({displayName, oldDisplayName}: ReportArchiveReasonsMergedParams) => - `Este chat de espacio de trabajo esta desactivado porque ${oldDisplayName} ha combinado su cuenta con ${displayName}.`, - [CONST.REPORT.ARCHIVE_REASON.REMOVED_FROM_POLICY]: ({displayName, policyName}: ReportArchiveReasonsRemovedFromPolicyParams) => - `Este chat de espacio de trabajo esta desactivado porque ${displayName} ha dejado de ser miembro del espacio de trabajo ${policyName}.`, + `Este chat esta desactivado porque ${oldDisplayName} ha combinado su cuenta con ${displayName}.`, + [CONST.REPORT.ARCHIVE_REASON.REMOVED_FROM_POLICY]: ({displayName, policyName, shouldUseYou = false}: ReportArchiveReasonsRemovedFromPolicyParams) => + shouldUseYou + ? `Este chat esta desactivado porque ha dejado de ser miembro del espacio de trabajo ${policyName}.` + : `Este chat esta desactivado porque ${displayName} ha dejado de ser miembro del espacio de trabajo ${policyName}.`, [CONST.REPORT.ARCHIVE_REASON.POLICY_DELETED]: ({policyName}: ReportArchiveReasonsPolicyDeletedParams) => - `Este chat de espacio de trabajo esta desactivado porque el espacio de trabajo ${policyName} se ha eliminado.`, + `Este chat esta desactivado porque el espacio de trabajo ${policyName} se ha eliminado.`, }, writeCapabilityPage: { label: 'Quién puede postear', From 045018839066bad4e66de063d579d2f81e3de340 Mon Sep 17 00:00:00 2001 From: rayane-djouah <77965000+rayane-djouah@users.noreply.github.com> Date: Sun, 25 Feb 2024 23:03:01 +0100 Subject: [PATCH 07/10] correct spanish translation --- src/languages/es.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/languages/es.ts b/src/languages/es.ts index 802908d8c182..a0da53859fba 100644 --- a/src/languages/es.ts +++ b/src/languages/es.ts @@ -514,7 +514,7 @@ export default { `Este chat esta desactivado porque ${oldDisplayName} ha combinado su cuenta con ${displayName}.`, [CONST.REPORT.ARCHIVE_REASON.REMOVED_FROM_POLICY]: ({displayName, policyName, shouldUseYou = false}: ReportArchiveReasonsRemovedFromPolicyParams) => shouldUseYou - ? `Este chat esta desactivado porque ha dejado de ser miembro del espacio de trabajo ${policyName}.` + ? `Este chat ya no está activo porque ya no eres miembro del espacio de trabajo ${policyName}.` : `Este chat esta desactivado porque ${displayName} ha dejado de ser miembro del espacio de trabajo ${policyName}.`, [CONST.REPORT.ARCHIVE_REASON.POLICY_DELETED]: ({policyName}: ReportArchiveReasonsPolicyDeletedParams) => `Este chat esta desactivado porque el espacio de trabajo ${policyName} se ha eliminado.`, From fb2d496d39de7e58722b7570cfbc392dfb2f4671 Mon Sep 17 00:00:00 2001 From: rayane-djouah <77965000+rayane-djouah@users.noreply.github.com> Date: Mon, 26 Feb 2024 00:38:26 +0100 Subject: [PATCH 08/10] fix failing test --- tests/unit/SidebarTest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/SidebarTest.js b/tests/unit/SidebarTest.js index 6a813ef1fa8c..09f979d0dd98 100644 --- a/tests/unit/SidebarTest.js +++ b/tests/unit/SidebarTest.js @@ -132,7 +132,7 @@ describe('Sidebar', () => { const hintMessagePreviewText = Localize.translateLocal('accessibilityHints.lastChatMessagePreview'); const messagePreviewTexts = screen.queryAllByLabelText(hintMessagePreviewText); expect(lodashGet(messagePreviewTexts, [0, 'props', 'children'])).toBe( - 'This workspace chat is no longer active because Vikings Policy is no longer an active workspace.', + 'This chat is no longer active because Vikings Policy is no longer an active workspace.', ); }) ); From df4cb033a6393ff457bc08afb4f19a01d406968d Mon Sep 17 00:00:00 2001 From: rayane-djouah <77965000+rayane-djouah@users.noreply.github.com> Date: Mon, 26 Feb 2024 01:08:07 +0100 Subject: [PATCH 09/10] prettier --- tests/unit/SidebarTest.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/unit/SidebarTest.js b/tests/unit/SidebarTest.js index 09f979d0dd98..de44d858654f 100644 --- a/tests/unit/SidebarTest.js +++ b/tests/unit/SidebarTest.js @@ -131,9 +131,7 @@ describe('Sidebar', () => { const hintMessagePreviewText = Localize.translateLocal('accessibilityHints.lastChatMessagePreview'); const messagePreviewTexts = screen.queryAllByLabelText(hintMessagePreviewText); - expect(lodashGet(messagePreviewTexts, [0, 'props', 'children'])).toBe( - 'This chat is no longer active because Vikings Policy is no longer an active workspace.', - ); + expect(lodashGet(messagePreviewTexts, [0, 'props', 'children'])).toBe('This chat is no longer active because Vikings Policy is no longer an active workspace.'); }) ); }); From 60999968e7b3b6304f61598f3a7b7ef5fb4b35bf Mon Sep 17 00:00:00 2001 From: rayane-djouah <77965000+rayane-djouah@users.noreply.github.com> Date: Thu, 7 Mar 2024 16:30:38 +0100 Subject: [PATCH 10/10] correct Spanish translation --- src/languages/es.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/languages/es.ts b/src/languages/es.ts index a0da53859fba..ef150342be4a 100644 --- a/src/languages/es.ts +++ b/src/languages/es.ts @@ -509,15 +509,15 @@ export default { }, reportArchiveReasons: { [CONST.REPORT.ARCHIVE_REASON.DEFAULT]: 'Esta sala de chat ha sido eliminada.', - [CONST.REPORT.ARCHIVE_REASON.ACCOUNT_CLOSED]: ({displayName}: ReportArchiveReasonsClosedParams) => `Este chat esta desactivado porque ${displayName} ha cerrado su cuenta.`, + [CONST.REPORT.ARCHIVE_REASON.ACCOUNT_CLOSED]: ({displayName}: ReportArchiveReasonsClosedParams) => `Este chat está desactivado porque ${displayName} ha cerrado su cuenta.`, [CONST.REPORT.ARCHIVE_REASON.ACCOUNT_MERGED]: ({displayName, oldDisplayName}: ReportArchiveReasonsMergedParams) => - `Este chat esta desactivado porque ${oldDisplayName} ha combinado su cuenta con ${displayName}.`, + `Este chat está desactivado porque ${oldDisplayName} ha combinado su cuenta con ${displayName}`, [CONST.REPORT.ARCHIVE_REASON.REMOVED_FROM_POLICY]: ({displayName, policyName, shouldUseYou = false}: ReportArchiveReasonsRemovedFromPolicyParams) => shouldUseYou - ? `Este chat ya no está activo porque ya no eres miembro del espacio de trabajo ${policyName}.` - : `Este chat esta desactivado porque ${displayName} ha dejado de ser miembro del espacio de trabajo ${policyName}.`, + ? `Este chat ya no está activo porque tu ya no eres miembro del espacio de trabajo ${policyName}.` + : `Este chat está desactivado porque ${displayName} ha dejado de ser miembro del espacio de trabajo ${policyName}.`, [CONST.REPORT.ARCHIVE_REASON.POLICY_DELETED]: ({policyName}: ReportArchiveReasonsPolicyDeletedParams) => - `Este chat esta desactivado porque el espacio de trabajo ${policyName} se ha eliminado.`, + `Este chat está desactivado porque el espacio de trabajo ${policyName} se ha eliminado.`, }, writeCapabilityPage: { label: 'Quién puede postear',