fix: make sure to save the attachment that is visible in the carousel

pull/3017/head
William Grant 2 years ago
parent 4727b7ee55
commit e76eee5329

@ -223,9 +223,8 @@ export const OverlayMessageInfo = () => {
conversationId: convoId, conversationId: convoId,
messageSender: sender, messageSender: sender,
messageTimestamp: serverTimestamp || timestamp || Date.now(), messageTimestamp: serverTimestamp || timestamp || Date.now(),
attachment: attachments[0], attachment: attachments[visibleAttachmentIndex],
// TODO what about multiple attachments? index: visibleAttachmentIndex,
index: 0,
}); });
} }
}} }}

@ -1,6 +1,3 @@
/**
* @prettier
*/
export const saveURLAsFile = ({ export const saveURLAsFile = ({
filename, filename,
url, url,

Loading…
Cancel
Save