Fix replies to videos showing as quote photos
This commit is contained in:
parent
1718730e70
commit
cc15d630a7
1 changed files with 2 additions and 2 deletions
|
@ -31,7 +31,7 @@ import type {
|
||||||
AttachmentWithHydratedData,
|
AttachmentWithHydratedData,
|
||||||
} from '../../types/Attachment';
|
} from '../../types/Attachment';
|
||||||
import { copyCdnFields } from '../../util/attachments';
|
import { copyCdnFields } from '../../util/attachments';
|
||||||
import { LONG_MESSAGE, MIMETypeToString } from '../../types/MIME';
|
import { LONG_MESSAGE } from '../../types/MIME';
|
||||||
import type { RawBodyRange } from '../../types/BodyRange';
|
import type { RawBodyRange } from '../../types/BodyRange';
|
||||||
import type {
|
import type {
|
||||||
EmbeddedContactWithHydratedAvatar,
|
EmbeddedContactWithHydratedAvatar,
|
||||||
|
@ -796,7 +796,7 @@ async function uploadMessageQuote({
|
||||||
const uploaded = await uploadAttachment(thumbnail);
|
const uploaded = await uploadAttachment(thumbnail);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
contentType: MIMETypeToString(thumbnail.contentType),
|
contentType: attachment.contentType,
|
||||||
fileName: attachment.fileName,
|
fileName: attachment.fileName,
|
||||||
thumbnail: uploaded,
|
thumbnail: uploaded,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue