Skip to content

Commit 1d48f81

Browse files
authored
[FIX] Message link null corrupts message rendering (RocketChat#21579)
1 parent 14f7c3d commit 1d48f81

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • client/components/Message/Attachments

client/components/Message/Attachments/Item.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { isFileAttachment, FileAttachment } from './Files';
77
import { QuoteAttachment, QuoteAttachmentProps } from './QuoteAttachment';
88

99
const isQuoteAttachment = (attachment: AttachmentProps): attachment is QuoteAttachmentProps =>
10-
'message_link' in attachment;
10+
'message_link' in attachment && attachment.message_link !== null;
1111

1212
const Item: FC<{ attachment: AttachmentProps; file?: FileProp }> = ({ attachment, file }) => {
1313
if (isFileAttachment(attachment)) {

0 commit comments

Comments
 (0)