signal-desktop/libtextsecure
lilia 67f25214d3 Refactor outgoing identity key conflict handling
saveKeysToDeviceObject is the detector of outgoing identity key errors.
Catch these key errors closer to the source by pulling the
getKeysForNumber into the context of sendMessageToDevices, which lets
it access registerError and the message protobuf.

Previously identity key errors would be uncaught if all existing
sessions with a recipient were closed/deleted, since we would
preemptively fetch the new identity key. The old error handling only
kicked in after a 409/410 response from the server when posting a
message encrypted for a stale session.

// FREEBIE
2015-07-21 16:00:09 -07:00
..
storage Let textsecure devices throw on identity key change 2015-07-21 15:50:11 -07:00
test Move/refactor keepalive logic and add disconnect timer 2015-07-16 15:01:34 -07:00
account_manager.js Fix standalone registration 2015-07-06 12:45:09 -07:00
api.js DRY up Promise creation in api.js 2015-07-13 13:03:42 -07:00
axolotl_wrapper.js Update libaxolotl, handle untrusted identitykey 2015-07-20 14:25:02 -07:00
components.js Regenerate components/libts 2015-01-14 11:39:36 -10:00
contacts_parser.js Support for group sync 2015-06-25 13:24:32 -07:00
crypto.js Signaling key is now an array buffer 2015-05-15 11:39:22 -07:00
errors.js Plumb keys into outgoing conflicts 2015-07-20 16:13:17 -07:00
helpers.js Fix group update avatar handling 2015-06-26 12:23:57 -07:00
key_worker.js Generate key_worker.js 2015-04-15 15:38:57 -07:00
libaxolotl.js Plumb keys into outgoing conflicts 2015-07-20 16:13:17 -07:00
message_receiver.js Move/refactor keepalive logic and add disconnect timer 2015-07-16 15:01:34 -07:00
protobufs.js Load protobufs asynchronously. Fixes #223 2015-05-15 11:38:14 -07:00
sendmessage.js Refactor outgoing identity key conflict handling 2015-07-21 16:00:09 -07:00
storage.js Move local identitykey and registrationid to indexeddb 2015-05-15 11:38:14 -07:00
stringview.js Move js files around for libtextsecure split 2015-01-14 09:35:57 -10:00
websocket-resources.js Move/refactor keepalive logic and add disconnect timer 2015-07-16 15:01:34 -07:00
websocket.js Move/refactor keepalive logic and add disconnect timer 2015-07-16 15:01:34 -07:00