signal-desktop/js
lilia 1614a6f1b8 Add special handling for verification sync
processVerifiedMessage checks the current state of the database against the
identity key from an incoming verification sync message to determine whether or
how to update our local record.

When syncing a DEFAULT status and we have no local record, it's a no-op, but
we'll log it.

When syncing a DEFAULT status and we have non-default record with the same key,
mark it as default.

When syncing a VERIFIED status and either:
  1. we have no key on record,
  2. we have have a different key on record, or
  3. we have the same key on record, but not verified
mark it as verified.

Otherwise do nothing.

References: https://github.com/WhisperSystems/Signal-Android/blob/master/src/org/thoughtcrime/securesms/util/IdentityUtil.java#L129

// FREEBIE

Ensure processVerified resolves
2017-08-04 12:03:25 -07:00
..
models Ensure that we pull verified state only after getting profiles 2017-08-04 12:03:25 -07:00
views Show call to action on group member list when verifying 2017-08-04 12:03:25 -07:00
background.js Fixes to get local verification and sync messages working 2017-08-04 12:03:25 -07:00
chromium.js Drop chrome.runtime.onMessage events 2017-02-28 11:49:56 -08:00
components.js Introduce new filesize dependency 2017-05-09 15:14:20 -07:00
conversation_controller.js Add items to conversation history when user verifies/unverifies 2017-08-04 12:03:25 -07:00
conversation_panel.js Remove erroneous license file and headers 2015-09-07 14:58:42 -07:00
database.js Fixes to get local verification and sync messages working 2017-08-04 12:03:25 -07:00
debugLog.js Use error.stack instead of error for console log 2017-06-20 16:57:11 -07:00
delivery_receipts.js Improve keychange notice reliability/perf 2017-05-09 15:41:41 -07:00
emoji_util.js Bulletproof getCountOfAllMatches against non-global regex input 2017-05-10 15:51:39 -07:00
expire.js Add build support for expiring old releases 2016-04-03 20:55:53 -07:00
expiring_messages.js Use ISO format in log message 2017-04-19 13:58:20 -07:00
index.js Use appendChild instead of append 2017-04-15 23:46:02 -07:00
keychange_listener.js Improve keychange notice reliability/perf 2017-05-09 15:41:41 -07:00
libphonenumber-util.js Refactor number parsing and validation 2015-12-09 18:58:51 -08:00
libsignal-protocol-worker.js Update libsignal-protocol v1.0.0 2016-06-14 16:27:34 -07:00
libtextsecure.js Fixes to get local verification and sync messages working 2017-08-04 12:03:25 -07:00
Mp3LameEncoder.min.js Add voice notes 2016-08-23 16:16:31 -07:00
notifications.js Add an option to play audio notifications 2017-02-02 09:00:14 -06:00
options.js Move Whisper.events out of views and tests 2017-04-21 13:21:18 -07:00
panel_controller.js Simplify openConversation 2017-04-10 12:45:58 -07:00
read_receipts.js Mark older messages as read when we get out-of-order read receipt 2017-06-07 15:46:21 -07:00
register.js Fix minor style errors 2016-02-18 13:45:22 -08:00
registration.js Refactor registration event 2016-09-20 13:42:33 -07:00
rotate_signed_prekey_listener.js Remove some global refs to window.events 2017-04-12 20:43:16 -07:00
signal_protocol_store.js Add special handling for verification sync 2017-08-04 12:03:25 -07:00
storage.js Log on failure to fetch storage 2016-08-11 12:22:32 -07:00
wall_clock_listener.js Remove some global refs to window.events 2017-04-12 20:43:16 -07:00
WebAudioRecorderMp3.js Add voice notes 2016-08-23 16:16:31 -07:00