mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Harmonized filenames with Android version (#4324)
The Android app saves files with the filename format 'signal-YYYY-MM-DD-hhmmss.extension' but the desktop version saves them with format 'signal-attachment-YYYY-MM-DD-hhmmss.extension'. The attachment changes the suggested filename in Attachment.ts to have the prefix 'signal' rather than 'signal-attachment'. Tests were changed as necessary. Resolves #4321
This commit is contained in:
@@ -49,7 +49,7 @@ describe('Attachment', () => {
|
||||
attachment,
|
||||
timestamp,
|
||||
});
|
||||
const expected = 'signal-attachment-1970-01-01-000000.mov';
|
||||
const expected = 'signal-1970-01-01-000000.mov';
|
||||
assert.strictEqual(actual, expected);
|
||||
});
|
||||
});
|
||||
@@ -65,7 +65,7 @@ describe('Attachment', () => {
|
||||
timestamp,
|
||||
index: 3,
|
||||
});
|
||||
const expected = 'signal-attachment-1970-01-01-000000_003.mov';
|
||||
const expected = 'signal-1970-01-01-000000_003.mov';
|
||||
assert.strictEqual(actual, expected);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user