rename saved attachment to session-... rather than signal-

pull/715/head
Audric Ackermann 6 years ago
parent ddaf62a499
commit 319fcb6a6d

@ -50,7 +50,7 @@ describe('Attachment', () => {
attachment, attachment,
timestamp, timestamp,
}); });
const expected = 'signal-attachment-2000-01-01-000000.mov'; const expected = 'session-attachment-2000-01-01-000000.mov';
assert.strictEqual(actual, expected); assert.strictEqual(actual, expected);
}); });
}); });
@ -66,7 +66,7 @@ describe('Attachment', () => {
timestamp, timestamp,
index: 3, index: 3,
}); });
const expected = 'signal-attachment-1970-01-01-000000_003.mov'; const expected = 'session-attachment-1970-01-01-000000_003.mov';
assert.strictEqual(actual, expected); assert.strictEqual(actual, expected);
}); });
}); });

@ -361,7 +361,7 @@ export const getSuggestedFilename = ({
return attachment.fileName; return attachment.fileName;
} }
const prefix = 'signal-attachment'; const prefix = 'session-attachment';
const suffix = timestamp const suffix = timestamp
? moment(timestamp).format('-YYYY-MM-DD-HHmmss') ? moment(timestamp).format('-YYYY-MM-DD-HHmmss')
: ''; : '';

Loading…
Cancel
Save