diff --git a/src/languages/en.ts b/src/languages/en.ts index 64e82ee95b77..1cf3904a67ac 100755 --- a/src/languages/en.ts +++ b/src/languages/en.ts @@ -3327,4 +3327,7 @@ export default { additionalInfoTitle: 'What software are you moving to and why?', additionalInfoInputLabel: 'Your response', }, + roomChangeLog: { + updateRoomDescription: 'set the room description to:', + }, } satisfies TranslationBase; diff --git a/src/languages/es.ts b/src/languages/es.ts index 055ad2be8463..90dcc78aba22 100644 --- a/src/languages/es.ts +++ b/src/languages/es.ts @@ -3831,4 +3831,7 @@ export default { additionalInfoTitle: '¿A qué software está migrando y por qué?', additionalInfoInputLabel: 'Tu respuesta', }, + roomChangeLog: { + updateRoomDescription: 'establece la descripción de la sala a:', + }, } satisfies EnglishTranslation; diff --git a/src/libs/SidebarUtils.ts b/src/libs/SidebarUtils.ts index 7929c2d60475..82c545665c8b 100644 --- a/src/libs/SidebarUtils.ts +++ b/src/libs/SidebarUtils.ts @@ -368,6 +368,11 @@ function getOptionData({ : ` ${Localize.translate(preferredLocale, 'workspace.invite.from')}`; result.alternateText += `${preposition} ${roomName}`; } + if (lastActionName === CONST.REPORT.ACTIONS.TYPE.ROOM_CHANGE_LOG.UPDATE_ROOM_DESCRIPTION) { + result.alternateText = `${lastActorDisplayName} ${Localize.translate(preferredLocale, 'roomChangeLog.updateRoomDescription')} ${ + lastActionOriginalMessage?.description + }`.trim(); + } } else if (lastAction?.actionName === CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.LEAVE_POLICY) { result.alternateText = Localize.translateLocal('workspace.invite.leftWorkspace'); } else if (lastAction?.actionName !== CONST.REPORT.ACTIONS.TYPE.REPORT_PREVIEW && lastActorDisplayName && lastMessageTextFromReport) { diff --git a/src/pages/home/report/ReportActionItem.tsx b/src/pages/home/report/ReportActionItem.tsx index 7184dd3eabc7..d58da8846ad4 100644 --- a/src/pages/home/report/ReportActionItem.tsx +++ b/src/pages/home/report/ReportActionItem.tsx @@ -62,7 +62,7 @@ import ONYXKEYS from '@src/ONYXKEYS'; import ROUTES from '@src/ROUTES'; import type * as OnyxTypes from '@src/types/onyx'; import type {Errors} from '@src/types/onyx/OnyxCommon'; -import type {JoinWorkspaceResolution} from '@src/types/onyx/OriginalMessage'; +import type {JoinWorkspaceResolution, OriginalMessageChangeLog} from '@src/types/onyx/OriginalMessage'; import {isEmptyObject} from '@src/types/utils/EmptyObject'; import {RestrictedReadOnlyContextMenuActions} from './ContextMenu/ContextMenuActions'; import MiniReportActionContextMenu from './ContextMenu/MiniReportActionContextMenu'; @@ -623,6 +623,9 @@ function ReportActionItem({ children = ; } else if (action.actionName === CONST.REPORT.ACTIONS.TYPE.MERGED_WITH_CASH_TRANSACTION) { children = ; + } else if (action.actionName === CONST.REPORT.ACTIONS.TYPE.ROOM_CHANGE_LOG.UPDATE_ROOM_DESCRIPTION) { + const message = `${translate('roomChangeLog.updateRoomDescription')} ${(originalMessage as OriginalMessageChangeLog)?.description}`; + children = ; } else if (ReportActionsUtils.isActionOfType(action, CONST.REPORT.ACTIONS.TYPE.DISMISSED_VIOLATION)) { children = ; } else { diff --git a/src/types/onyx/OriginalMessage.ts b/src/types/onyx/OriginalMessage.ts index c700dca53f34..edeeeab551b0 100644 --- a/src/types/onyx/OriginalMessage.ts +++ b/src/types/onyx/OriginalMessage.ts @@ -236,6 +236,9 @@ type OriginalMessageChangeLog = { /** Name of the chat room */ roomName?: string; + /** Description of the chat room */ + description?: string; + /** ID of the report */ reportID?: number; };