Ensure suggested attachment filenames are consistent
This commit is contained in:
parent
cb2c691667
commit
e09fa7b402
1 changed files with 5 additions and 2 deletions
|
@ -907,7 +907,7 @@
|
|||
});
|
||||
|
||||
const saveAttachment = async ({ attachment, message } = {}) => {
|
||||
const timestamp = message.received_at;
|
||||
const timestamp = message.sent_at;
|
||||
Signal.Types.Attachment.save({
|
||||
attachment,
|
||||
document,
|
||||
|
@ -1467,7 +1467,10 @@
|
|||
objectURL: getAbsoluteAttachmentPath(path),
|
||||
contentType,
|
||||
caption: attachment.caption,
|
||||
onSave: () => this.downloadAttachment({ attachment, message }),
|
||||
onSave: () => {
|
||||
const timestamp = message.get('sent_at');
|
||||
this.downloadAttachment({ attachment, timestamp, message });
|
||||
},
|
||||
};
|
||||
this.lightboxView = new Whisper.ReactWrapperView({
|
||||
className: 'lightbox-wrapper',
|
||||
|
|
Loading…
Add table
Reference in a new issue