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 9c736df7d0 Handle incoming identity key changes
This ended up turning into a rewrite/refactor of the background page.
For best results, view this diff with `-w` to ignore whitespace. In
order to support retrying message decryption, possibly at a much later
time than the message is received, we now implement the following:

Each message is saved before it is decrypted. This generates a unique
message_id which is later used to update the database entry with the
message contents, or with any errors generated during processing.

When an IncomingIdentityKeyError occurs, we catch it and save it on the
model, then update the front end as usual. When the user clicks to
accept the new key, the error is replayed, which causes the message to
be decrypted and then passed to the background page for normal
processing.
10 years ago
..
models Don't store conversationType on messages 10 years ago
storage Move storage objects to their own files 11 years ago
views DRY up registration event callbacks 10 years ago
api.js Move Base64 functions to their own file 11 years ago
background.js Handle incoming identity key changes 10 years ago
chromium.js DRY up registration event callbacks 10 years ago
components.js Support for lower-level queries on indexedDB 10 years ago
crypto.js Fixup curve25519 module 11 years ago
curve25519_compiled.js Fixup curve25519 module 11 years ago
database.js Move message and conversation storage to IndexedDB 11 years ago
errors.js Rewrite ReplayableErrors 10 years ago
helpers.js Handle incoming identity key changes 10 years ago
index.js Get rid of Layout global 11 years ago
libphonenumber-util.js Move phonenumbery utils to libphonenumber object 11 years ago
nativeclient.js Fixup curve25519 module 11 years ago
options.js Namespace registration helpers 11 years ago
protobufs.js New websocket protocol 11 years ago
protocol.js Handle incoming identity key changes 10 years ago
sendmessage.js Rewrite ReplayableErrors 10 years ago
storage.js Move storage objects to their own files 11 years ago
stringview.js Add stringview license info and script tags 11 years ago
webcrypto.js Simplify webcrypto type conversion 11 years ago
websocket-resources.js WebSocket-Resources / websocket refactor 11 years ago
websocket.js Keepalive endpoint 10 years ago