diff --git a/src/app/components/RenderMessageContent.tsx b/src/app/components/RenderMessageContent.tsx index 55b0ffc2..0c37f322 100644 --- a/src/app/components/RenderMessageContent.tsx +++ b/src/app/components/RenderMessageContent.tsx @@ -29,7 +29,7 @@ import { ImageViewer } from './image-viewer'; import { PdfViewer } from './Pdf-viewer'; import { TextViewer } from './text-viewer'; import { testMatrixTo } from '../plugins/matrix-to'; -import {IImageContent} from "../../types/matrix/common"; +import { IImageContent } from '../../types/matrix/common'; type RenderMessageContentProps = { displayName: string; @@ -70,7 +70,7 @@ export function RenderMessageContent({ }; const renderCaption = () => { const content: IImageContent = getContent(); - if(content.filename && content.filename !== content.body) { + if (content.filename && content.filename !== content.body) { return ( - ) + ); } return null; - } + }; const renderFile = () => ( <> ( - ( - } - /> - )} - renderAsTextFile={() => ( - } - /> - )} - > - - - + ( + } + /> + )} + renderAsTextFile={() => ( + } + /> + )} + > + + )} outlined={outlineAttachment} /> @@ -188,12 +187,12 @@ export function RenderMessageContent({ ( - } - renderViewer={(p) => } - /> + } + renderViewer={(p) => } + /> )} outlined={outlineAttachment} /> @@ -208,23 +207,21 @@ export function RenderMessageContent({ ( + renderVideoContent={({ body, info, ...props }) => ( ( - ( - {body} - )} - /> - ) + ( + {body} + )} + /> + ) : undefined } renderVideo={(p) =>