"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "js/modules/types/attachment/migrate_data_to_file_system.js" between
Signal-Desktop-1.35.2.tar.gz and Signal-Desktop-1.36.1.tar.gz

About: Signal-Desktop is a cross-platform encrypted messaging service (also available for mobile devices).

migrate_data_to_file_system.js  (Signal-Desktop-1.35.2):migrate_data_to_file_system.js  (Signal-Desktop-1.36.1)
skipping to change at line 35 skipping to change at line 35
const isValidData = isArrayBuffer(data); const isValidData = isArrayBuffer(data);
if (!isValidData) { if (!isValidData) {
throw new TypeError( throw new TypeError(
'Expected `attachment.data` to be an array buffer;' + 'Expected `attachment.data` to be an array buffer;' +
` got: ${typeof attachment.data}` ` got: ${typeof attachment.data}`
); );
} }
const path = await writeNewAttachmentData(data); const path = await writeNewAttachmentData(data);
const attachmentWithoutData = omit(Object.assign({}, attachment, { path }), [ const attachmentWithoutData = omit({ ...attachment, path }, ['data']);
'data',
]);
return attachmentWithoutData; return attachmentWithoutData;
}; };
 End of changes. 1 change blocks. 
3 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)