fca67d7b0e
New private conversations have their type set in onMessageReceived. New group conversations should be handled the same way as normal group updates. It was pointed out we should never have to handle a group message without a preceding group update, as those would be rejected by textsecure.processDecrypted. An exception would be if you delete the group from indexedDB but not localStorage, but that's not a mode we should be supporting. Also in this change I switched to instantiating a new conversation object on every call to handlePushMessageContent. Originally, I thought to use the local conversation list as a cache, but it's a bit simpler to re-read from the database every time for now. Later on we should revisit and optimize for fewer read/writes per incoming message. |
||
---|---|---|
.. | ||
models | ||
storage | ||
views | ||
api.js | ||
background.js | ||
chromium.js | ||
components.js | ||
crypto.js | ||
curve25519_compiled.js | ||
database.js | ||
errors.js | ||
helpers.js | ||
index.js | ||
libphonenumber-util.js | ||
nativeclient.js | ||
options.js | ||
protobufs.js | ||
protocol.js | ||
sendmessage.js | ||
storage.js | ||
stringview.js | ||
webcrypto.js | ||
websocket-resources.js | ||
websocket.js |