diff --git a/ts/components/conversation/message/message-content/quote/Quote.tsx b/ts/components/conversation/message/message-content/quote/Quote.tsx index c4d2cd62f..36fdcf2c8 100644 --- a/ts/components/conversation/message/message-content/quote/Quote.tsx +++ b/ts/components/conversation/message/message-content/quote/Quote.tsx @@ -54,7 +54,7 @@ export type QuoteProps = { onClick?: (e: React.MouseEvent) => void; }; -export interface Attachment { +export interface QuotedAttachmentThumbnailType { contentType: MIME.MIMEType; /** Not included in protobuf, and is loaded asynchronously */ objectUrl?: string; @@ -65,7 +65,7 @@ export interface QuotedAttachmentType { fileName: string; /** Not included in protobuf */ isVoiceMessage: boolean; - thumbnail?: Attachment; + thumbnail?: QuotedAttachmentThumbnailType; } export const Quote = (props: QuoteProps) => { diff --git a/ts/components/conversation/message/message-content/quote/QuoteIconContainer.tsx b/ts/components/conversation/message/message-content/quote/QuoteIconContainer.tsx index 83c25e503..c568aab56 100644 --- a/ts/components/conversation/message/message-content/quote/QuoteIconContainer.tsx +++ b/ts/components/conversation/message/message-content/quote/QuoteIconContainer.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { Attachment, QuoteProps } from './Quote'; +import { QuotedAttachmentThumbnailType, QuoteProps } from './Quote'; import { GoogleChrome } from '../../../../../util'; import { MIME } from '../../../../../types'; @@ -8,7 +8,7 @@ import { QuoteImage } from './QuoteImage'; import styled from 'styled-components'; import { icons, SessionIconType } from '../../../../icon'; -function getObjectUrl(thumbnail: Attachment | undefined): string | undefined { +function getObjectUrl(thumbnail: QuotedAttachmentThumbnailType | undefined): string | undefined { if (thumbnail && thumbnail.objectUrl) { return thumbnail.objectUrl; }