dont decrypt initial msg
This commit is contained in:
parent
bdf23e78e4
commit
b108027ba5
1 changed files with 4 additions and 1 deletions
|
|
@ -406,7 +406,10 @@ const onOutgoing = cb => {
|
||||||
typeof msg.timestamp === 'number'
|
typeof msg.timestamp === 'number'
|
||||||
) {
|
) {
|
||||||
newOuts[id].messages[mid] = {
|
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
|
timestamp: msg.timestamp
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue