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 saveAttachment = async ({ attachment, message } = {}) => {
|
||||||
const timestamp = message.received_at;
|
const timestamp = message.sent_at;
|
||||||
Signal.Types.Attachment.save({
|
Signal.Types.Attachment.save({
|
||||||
attachment,
|
attachment,
|
||||||
document,
|
document,
|
||||||
|
@ -1467,7 +1467,10 @@
|
||||||
objectURL: getAbsoluteAttachmentPath(path),
|
objectURL: getAbsoluteAttachmentPath(path),
|
||||||
contentType,
|
contentType,
|
||||||
caption: attachment.caption,
|
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({
|
this.lightboxView = new Whisper.ReactWrapperView({
|
||||||
className: 'lightbox-wrapper',
|
className: 'lightbox-wrapper',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue