diff options
Diffstat (limited to 'public/scripts/chat.js')
-rw-r--r-- | public/scripts/chat.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/scripts/chat.js b/public/scripts/chat.js index 36cfdf1..42e6a29 100644 --- a/public/scripts/chat.js +++ b/public/scripts/chat.js @@ -131,7 +131,7 @@ function chat() { console.log(`[LOG] Sending message '${message}' to ${connectedPeer.peer}`); connectedPeer.send({ type: 'text', - data: await encryption.encrypt(message, await encryption.get(connectedPeer.peer)) + data: await encryption.encrypt(message, await encryption.get(connectedPeer.peer), await encryption.getPrivate(), passphrase) }); await receivedMessage(message, true); } |