"Fossies" - the Fresh Open Source Software Archive  

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

rotate_signed_prekey_listener.js  (Signal-Desktop-1.35.2):rotate_signed_prekey_listener.js  (Signal-Desktop-1.36.1)
/* global Whisper, storage, getAccountManager */ /* global Whisper, storage, getAccountManager */
// eslint-disable-next-line func-names // eslint-disable-next-line func-names
(function() { (function() {
'use strict';
window.Whisper = window.Whisper || {}; window.Whisper = window.Whisper || {};
const ROTATION_INTERVAL = 48 * 60 * 60 * 1000; const ROTATION_INTERVAL = 48 * 60 * 60 * 1000;
let timeout; let timeout;
function scheduleNextRotation() { function scheduleNextRotation() {
const now = Date.now(); const now = Date.now();
const nextTime = now + ROTATION_INTERVAL; const nextTime = now + ROTATION_INTERVAL;
storage.put('nextSignedKeyRotationTime', nextTime); storage.put('nextSignedKeyRotationTime', nextTime);
} }
 End of changes. 1 change blocks. 
2 lines changed or deleted 0 lines changed or added

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