"Fossies" - the Fresh Open Source Software Archive  

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

signal_protocol_store.js  (Signal-Desktop-1.35.2):signal_protocol_store.js  (Signal-Desktop-1.36.1)
/* global /* global
dcodeIO, Backbone, _, libsignal, textsecure, ConversationController, stringOb ject */ dcodeIO, Backbone, _, libsignal, textsecure, ConversationController, stringOb ject */
/* eslint-disable no-proto */ /* eslint-disable no-proto */
// eslint-disable-next-line func-names // eslint-disable-next-line func-names
(function() { (function() {
'use strict';
const TIMESTAMP_THRESHOLD = 5 * 1000; // 5 seconds const TIMESTAMP_THRESHOLD = 5 * 1000; // 5 seconds
const Direction = { const Direction = {
SENDING: 1, SENDING: 1,
RECEIVING: 2, RECEIVING: 2,
}; };
const VerifiedStatus = { const VerifiedStatus = {
DEFAULT: 0, DEFAULT: 0,
VERIFIED: 1, VERIFIED: 1,
UNVERIFIED: 2, UNVERIFIED: 2,
skipping to change at line 638 skipping to change at line 636
this.trigger('keychange', identifier); this.trigger('keychange', identifier);
} catch (error) { } catch (error) {
window.log.error( window.log.error(
'saveIdentity error triggering keychange:', 'saveIdentity error triggering keychange:',
error && error.stack ? error.stack : error error && error.stack ? error.stack : error
); );
} }
await this.archiveSiblingSessions(encodedAddress); await this.archiveSiblingSessions(encodedAddress);
return true; return true;
} else if (this.isNonBlockingApprovalRequired(identityRecord)) { }
if (this.isNonBlockingApprovalRequired(identityRecord)) {
window.log.info('Setting approval status...'); window.log.info('Setting approval status...');
identityRecord.nonblockingApproval = nonblockingApproval; identityRecord.nonblockingApproval = nonblockingApproval;
await this._saveIdentityKey(identityRecord); await this._saveIdentityKey(identityRecord);
return false; return false;
} }
return false; return false;
}, },
 End of changes. 2 change blocks. 
3 lines changed or deleted 2 lines changed or added

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