From 002c42fc8ad992e5103ef87110097a5f1cfd8132 Mon Sep 17 00:00:00 2001 From: nkdengineer Date: Tue, 18 Nov 2025 20:29:14 +0700 Subject: [PATCH] fix: Room description with markdown is shown as html in LHN --- src/libs/OptionsListUtils/index.ts | 2 +- src/libs/SidebarUtils.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/OptionsListUtils/index.ts b/src/libs/OptionsListUtils/index.ts index 1a6c796a76c7..1f7c0c83fc59 100644 --- a/src/libs/OptionsListUtils/index.ts +++ b/src/libs/OptionsListUtils/index.ts @@ -761,7 +761,7 @@ function getLastMessageTextForReport({ // eslint-disable-next-line @typescript-eslint/no-deprecated lastMessageTextFromReport = translateLocal('violations.resolvedDuplicates'); } else if (isActionOfType(lastReportAction, CONST.REPORT.ACTIONS.TYPE.ROOM_CHANGE_LOG.UPDATE_ROOM_DESCRIPTION)) { - lastMessageTextFromReport = getUpdateRoomDescriptionMessage(lastReportAction); + lastMessageTextFromReport = Parser.htmlToText(getUpdateRoomDescriptionMessage(lastReportAction)); } else if (isActionOfType(lastReportAction, CONST.REPORT.ACTIONS.TYPE.ROOM_CHANGE_LOG.UPDATE_ROOM_AVATAR)) { lastMessageTextFromReport = getRoomAvatarUpdatedMessage(lastReportAction); } else if (isActionOfType(lastReportAction, CONST.REPORT.ACTIONS.TYPE.RETRACTED)) { diff --git a/src/libs/SidebarUtils.ts b/src/libs/SidebarUtils.ts index e0b80f4a64f4..486d467b19a5 100644 --- a/src/libs/SidebarUtils.ts +++ b/src/libs/SidebarUtils.ts @@ -900,7 +900,7 @@ function getOptionData({ } else if (lastAction && isOldDotReportAction(lastAction)) { result.alternateText = getMessageOfOldDotReportAction(lastAction); } else if (lastAction?.actionName === CONST.REPORT.ACTIONS.TYPE.ROOM_CHANGE_LOG.UPDATE_ROOM_DESCRIPTION) { - result.alternateText = getUpdateRoomDescriptionMessage(lastAction); + result.alternateText = Parser.htmlToText(getUpdateRoomDescriptionMessage(lastAction)); } else if (lastAction?.actionName === CONST.REPORT.ACTIONS.TYPE.ROOM_CHANGE_LOG.UPDATE_ROOM_AVATAR) { result.alternateText = getRoomAvatarUpdatedMessage(lastAction); } else if (lastAction?.actionName === CONST.REPORT.ACTIONS.TYPE.POLICY_CHANGE_LOG.ADD_EMPLOYEE) {