From 61a165159257877b3a2164869c66dc563efd2ecd Mon Sep 17 00:00:00 2001 From: Alexey Safronov Date: Thu, 25 Jul 2024 15:47:03 +0400 Subject: [PATCH] Fix Bug 69196 - Rooms.Info.History. In history, the room is recorded as a folder. --- .../HistoryBlockContent/MainTextFolderInfo.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/client/src/pages/Home/InfoPanel/Body/views/History/HistoryBlockContent/MainTextFolderInfo.tsx b/packages/client/src/pages/Home/InfoPanel/Body/views/History/HistoryBlockContent/MainTextFolderInfo.tsx index ee0c156666..e4614a690c 100644 --- a/packages/client/src/pages/Home/InfoPanel/Body/views/History/HistoryBlockContent/MainTextFolderInfo.tsx +++ b/packages/client/src/pages/Home/InfoPanel/Body/views/History/HistoryBlockContent/MainTextFolderInfo.tsx @@ -54,23 +54,23 @@ const HistoryMainTextFolderInfo = ({ if (!parentTitle) return null; - const isParentType = parentType === 0; - const isFromParentType = fromParentType === 0; + const isRoom = parentType === 0; + const isFromRoom = fromParentType === 0; - const destination = isParentType - ? t("FeedLocationRoomLabel", { folderTitle: parentTitle }) - : t("FeedLocationLabel", { folderTitle: parentTitle }); + const destination = isRoom + ? t("FeedLocationLabel", { folderTitle: parentTitle }) + : t("FeedLocationRoomLabel", { folderTitle: parentTitle }); - const sourceDestination = isFromParentType + const sourceDestination = isFromRoom ? t("FeedLocationLabelFrom", { folderTitle: fromParentTitle }) : t("FeedLocationRoomLabel", { folderTitle: parentTitle }); - const className = !isFromParentType ? "folder-label" : "source-folder-label"; + const className = !isFromRoom ? "folder-label" : "source-folder-label"; return ( - {!isFromParentType ? destination : sourceDestination} + {!isFromRoom ? destination : sourceDestination} );