Skip to content

Commit 1a9f418

Browse files
committed
Update MsgTypeRenderers.tsx
1 parent 2a42941 commit 1a9f418

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/components/message/MsgTypeRenderers.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export function MText({ edited, content, renderBody, renderUrlsPreview, style }:
121121
return true;
122122
}, [trimmedBody, safeCustomBody]);
123123

124-
if (!body) return <BrokenContent body={customBody ?? body} />;
124+
if (!body && !customBody) return <BrokenContent body={customBody ?? body} />;
125125

126126
const urlsMatch = renderUrlsPreview && trimmedBody.match(URL_REG);
127127
const urls = urlsMatch ? [...new Set(urlsMatch)] : undefined;

0 commit comments

Comments
 (0)