"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "js/modules/types/conversation.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).

conversation.js  (Signal-Desktop-1.35.2):conversation.js  (Signal-Desktop-1.36.1)
/* global crypto, window */ /* global window */
const { isFunction, isNumber } = require('lodash'); const { isFunction, isNumber } = require('lodash');
const { const {
arrayBufferToBase64, arrayBufferToBase64,
base64ToArrayBuffer, base64ToArrayBuffer,
computeHash,
} = require('../../../ts/Crypto'); } = require('../../../ts/Crypto');
async function computeHash(arraybuffer) {
const hash = await crypto.subtle.digest({ name: 'SHA-512' }, arraybuffer);
return arrayBufferToBase64(hash);
}
function buildAvatarUpdater({ field }) { function buildAvatarUpdater({ field }) {
return async (conversation, data, options = {}) => { return async (conversation, data, options = {}) => {
if (!conversation) { if (!conversation) {
return conversation; return conversation;
} }
const avatar = conversation[field]; const avatar = conversation[field];
const { const {
deleteAttachmentData, deleteAttachmentData,
doesAttachmentExist, doesAttachmentExist,
 End of changes. 3 change blocks. 
6 lines changed or deleted 2 lines changed or added

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