"Fossies" - the Fresh Open Source Software Archive  

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

debug.js  (Signal-Desktop-1.35.2):debug.js  (Signal-Desktop-1.36.1)
skipping to change at line 114 skipping to change at line 114
type, type,
}; };
const message = _createMessage({ commonProperties, conversationId, type }); const message = _createMessage({ commonProperties, conversationId, type });
return Message.initializeSchemaVersion({ message, logger: log }); return Message.initializeSchemaVersion({ message, logger: log });
}; };
const _createMessage = ({ commonProperties, conversationId, type } = {}) => { const _createMessage = ({ commonProperties, conversationId, type } = {}) => {
switch (type) { switch (type) {
case 'incoming': case 'incoming':
return Object.assign({}, commonProperties, { return {
...commonProperties,
flags: 0, flags: 0,
source: conversationId, source: conversationId,
sourceDevice: 1, sourceDevice: 1,
}); };
case 'outgoing': case 'outgoing':
return Object.assign({}, commonProperties, { return {
...commonProperties,
delivered: 1, delivered: 1,
delivered_to: [conversationId], delivered_to: [conversationId],
expireTimer: 0, expireTimer: 0,
recipients: [conversationId], recipients: [conversationId],
sent_to: [conversationId], sent_to: [conversationId],
synced: true, synced: true,
}); };
default: default:
throw new TypeError(`Unknown message type: '${type}'`); throw new TypeError(`Unknown message type: '${type}'`);
} }
}; };
const FIXTURES_PATH = path.join(__dirname, '..', '..', 'fixtures'); const FIXTURES_PATH = path.join(__dirname, '..', '..', 'fixtures');
const readData = Attachments.createReader(FIXTURES_PATH); const readData = Attachments.createReader(FIXTURES_PATH);
const createRandomInMemoryAttachment = async () => { const createRandomInMemoryAttachment = async () => {
const files = (await fs.readdir(FIXTURES_PATH)).map(createFileEntry); const files = (await fs.readdir(FIXTURES_PATH)).map(createFileEntry);
const { contentType, fileName } = sample(files); const { contentType, fileName } = sample(files);
 End of changes. 4 change blocks. 
4 lines changed or deleted 6 lines changed or added

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