mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Move to central MIME functions, remove some console.log
And generally address PR feedback.
This commit is contained in:
@@ -1137,13 +1137,11 @@
|
||||
|
||||
// Maybe in the future we could try to pull thumbnails video ourselves,
|
||||
// but for now we will rely on incoming thumbnails only.
|
||||
console.log({ first, contentType: first ? first.contentType : null });
|
||||
if (!first || !MIME.isImage(first.contentType)) {
|
||||
return;
|
||||
}
|
||||
|
||||
const quotedAttachments = quotedMessage.get('attachments') || [];
|
||||
console.log({ quotedMessage, quotedAttachments });
|
||||
if (quotedAttachments.length === 0) {
|
||||
return;
|
||||
}
|
||||
@@ -1155,7 +1153,6 @@
|
||||
// Note: it would be nice to take the full-size image and downsample it into
|
||||
// a true thumbnail here.
|
||||
quotedMessage.updateImageUrl();
|
||||
console.log({ quotedMessage });
|
||||
},
|
||||
async loadQuoteThumbnail(message) {
|
||||
const { quote } = message.attributes;
|
||||
|
||||
Reference in New Issue
Block a user