We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14f7c3d commit 1d48f81Copy full SHA for 1d48f81
1 file changed
client/components/Message/Attachments/Item.tsx
@@ -7,7 +7,7 @@ import { isFileAttachment, FileAttachment } from './Files';
7
import { QuoteAttachment, QuoteAttachmentProps } from './QuoteAttachment';
8
9
const isQuoteAttachment = (attachment: AttachmentProps): attachment is QuoteAttachmentProps =>
10
- 'message_link' in attachment;
+ 'message_link' in attachment && attachment.message_link !== null;
11
12
const Item: FC<{ attachment: AttachmentProps; file?: FileProp }> = ({ attachment, file }) => {
13
if (isFileAttachment(attachment)) {
0 commit comments