diff --git a/.yarnrc.yml b/.yarnrc.yml index d4854ebe9212..8abafc3d6310 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -2,12 +2,14 @@ nodeLinker: node-modules plugins: - path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs - spec: "@yarnpkg/plugin-workspace-tools" + spec: '@yarnpkg/plugin-workspace-tools' - path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs - spec: "@yarnpkg/plugin-interactive-tools" + spec: '@yarnpkg/plugin-interactive-tools' - path: .yarn/plugins/@yarnpkg/plugin-engines.cjs - spec: "https://raw.githubusercontent.com/devoto13/yarn-plugin-engines/main/bundles/%40yarnpkg/plugin-engines.js" + spec: 'https://raw.githubusercontent.com/devoto13/yarn-plugin-engines/main/bundles/%40yarnpkg/plugin-engines.js' - path: .yarn/plugins/@yarnpkg/plugin-typescript.cjs - spec: "@yarnpkg/plugin-typescript" + spec: '@yarnpkg/plugin-typescript' yarnPath: .yarn/releases/yarn-3.2.0.cjs + +checksumBehavior: 'update' diff --git a/apps/meteor/client/views/room/MessageList/components/Message.tsx b/apps/meteor/client/views/room/MessageList/components/Message.tsx index ed891518aa58..8c27a72b2bdb 100644 --- a/apps/meteor/client/views/room/MessageList/components/Message.tsx +++ b/apps/meteor/client/views/room/MessageList/components/Message.tsx @@ -43,7 +43,13 @@ const Message: FC<{ message: IMessage; sequential: boolean; subscription?: ISubs > {!sequential && message.u.username && !isSelecting && ( - + )} {isSelecting && } {sequential && } diff --git a/apps/meteor/client/views/room/MessageList/components/MessageContent.tsx b/apps/meteor/client/views/room/MessageList/components/MessageContent.tsx index 839ed704150d..d19900d7b51b 100644 --- a/apps/meteor/client/views/room/MessageList/components/MessageContent.tsx +++ b/apps/meteor/client/views/room/MessageList/components/MessageContent.tsx @@ -1,6 +1,6 @@ /* eslint-disable complexity */ import { IMessage, isDiscussionMessage, isThreadMainMessage, ISubscription } from '@rocket.chat/core-typings'; -import { MessageBody } from '@rocket.chat/fuselage'; +import { MessageBody, MessageBlock } from '@rocket.chat/fuselage'; import { useTranslation, useUserId, TranslationKey } from '@rocket.chat/ui-contexts'; import React, { FC, memo } from 'react'; @@ -12,7 +12,7 @@ import DiscussionMetric from '../../../../components/Message/Metrics/Discussion' import ThreadMetric from '../../../../components/Message/Metrics/Thread'; import { useUserData } from '../../../../hooks/useUserData'; import { UserPresence } from '../../../../lib/presence'; -import MessageBlock from '../../../blocks/MessageBlock'; +import MessageBlockUiKit from '../../../blocks/MessageBlock'; import MessageLocation from '../../../location/MessageLocation'; import { useMessageActions, useMessageOembedIsEnabled, useMessageRunActionLink } from '../../contexts/MessageContext'; import { useMessageListShowReadReceipt } from '../contexts/MessageListContext'; @@ -54,7 +54,11 @@ const MessageContent: FC<{ message: IMessage; sequential: boolean; subscription? {isEncryptedMessage && message.e2e === 'pending' && t('E2E_message_encrypted_placeholder')} )} - {message.blocks && } + {message.blocks && ( + + + + )} {message.attachments && } {oembedIsEnabled && !!message.urls?.length && } diff --git a/apps/meteor/client/views/room/MessageList/components/MessageHeader.tsx b/apps/meteor/client/views/room/MessageList/components/MessageHeader.tsx index 5a7d0e1be2ce..76df593012db 100644 --- a/apps/meteor/client/views/room/MessageList/components/MessageHeader.tsx +++ b/apps/meteor/client/views/room/MessageList/components/MessageHeader.tsx @@ -42,7 +42,7 @@ const MessageHeader: FC<{ message: IMessage }> = ({ message }) => { onClick={user.username !== undefined ? openUserCard(user.username) : undefined} style={{ cursor: 'pointer' }} > - {getUserDisplayName(user.name, user.username, showRealName)} + {message.alias || getUserDisplayName(user.name, user.username, showRealName)} {showUsername && (