You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
session-desktop/js
lilia 25ee61d3cb Fix timers after suspend/resume/pause
We use timers to decide when to query and delete expired messages or
when to perform signed key rotations.

Internally, timers are counters that get updated when the CPU ticks, so
if the CPU sleeps, the timer will stop counting, and start again after
it wakes up, ignoring the intervening passage of wall clock time.

To fix this, without having to query the database or other potentially
high overhead operations too often, use an interval to frequently check
the wall clock time. If time jumps forward, trigger a global event so
other listeners can update their possibly-inaccurate timers.

https://stackoverflow.com/questions/6346849/what-happens-to-settimeout-when-the-computer-goes-to-sleep
https://stackoverflow.com/questions/4079115/can-any-desktop-browsers-detect-when-the-computer-resumes-from-sleep

// FREEBIE
8 years ago
..
models Rework expiring messages management 8 years ago
views Rework expiring messages management 8 years ago
Mp3LameEncoder.min.js Add voice notes 9 years ago
WebAudioRecorderMp3.js Add voice notes 9 years ago
background.js Fix timers after suspend/resume/pause 8 years ago
chromium.js Drop chrome.runtime.onMessage events 8 years ago
components.js Update libphonenumber 9 years ago
conversation_controller.js Ensure that expired messages are removed from the frontend 9 years ago
conversation_panel.js Remove erroneous license file and headers 10 years ago
database.js Rework expiring messages management 8 years ago
debugLog.js Fix minor style errors 9 years ago
delivery_receipts.js Remove spurious update to conversation on delivery receipts 8 years ago
emoji_util.js Fix search tests 9 years ago
expire.js Add build support for expiring old releases 9 years ago
expiring_messages.js Fix timers after suspend/resume/pause 8 years ago
index.js Remove refs to appWindow 9 years ago
libphonenumber-util.js Refactor number parsing and validation 10 years ago
libsignal-protocol-worker.js Update libsignal-protocol v1.0.0 9 years ago
libtextsecure.js Fix key change errors while retrying key change errors 8 years ago
notifications.js Add an option to play audio notifications 8 years ago
options.js Refactor registration event 9 years ago
panel_controller.js Clear window attention if all messages are marked read 9 years ago
read_receipts.js Use read receipt envelope to infer startExpirationTime 9 years ago
register.js Fix minor style errors 9 years ago
registration.js Refactor registration event 9 years ago
rotate_signed_prekey_listener.js Fix timers after suspend/resume/pause 8 years ago
signal_protocol_store.js Log session deletions 8 years ago
storage.js Log on failure to fetch storage 9 years ago
wall_clock_listener.js Fix timers after suspend/resume/pause 8 years ago