dont decrypt initial msg

This commit is contained in:
Daniel Lugo 2020-01-29 23:34:25 -04:00
parent bdf23e78e4
commit b108027ba5

View file

@ -406,7 +406,10 @@ const onOutgoing = cb => {
typeof msg.timestamp === 'number'
) {
newOuts[id].messages[mid] = {
body: await SEA.decrypt(msg.body, ourSec),
body:
msg.body === Actions.INITIAL_MSG
? Actions.INITIAL_MSG
: await SEA.decrypt(msg.body, ourSec),
timestamp: msg.timestamp
}
}