This commit is contained in:
Jamie Kyle 2023-04-20 10:03:43 -07:00 committed by GitHub
parent 1f2cde6d04
commit 0e490542a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
196 changed files with 2117 additions and 1217 deletions

View file

@ -7,13 +7,13 @@ import React from 'react';
import type { AttachmentType } from '../../types/Attachment';
import { canBeDownloaded } from '../../types/Attachment';
import { getSizeClass } from '../emoji/lib';
import { Emojify } from './Emojify';
import type { ShowConversationType } from '../../state/ducks/conversations';
import type { HydratedBodyRangesType } from '../../types/BodyRange';
import type { LocalizerType } from '../../types/Util';
import { MessageTextRenderer } from './MessageTextRenderer';
import type { RenderLocation } from './MessageTextRenderer';
import { UserText } from '../UserText';
export type Props = {
author?: string;
@ -103,7 +103,7 @@ export function MessageBody({
{author && (
<>
<span className="MessageBody__author">
<Emojify text={author} />
<UserText text={author} />
</span>
:{' '}
</>
@ -111,7 +111,7 @@ export function MessageBody({
{prefix && (
<>
<span className="MessageBody__prefix">
<Emojify text={prefix} />
<UserText text={prefix} />
</span>{' '}
</>
)}