From 5214443a65568049849649bc63976a1df9ce04eb Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 13 Feb 2019 19:07:03 +0100 Subject: Fixed issue with contact adding --- public/scripts/chat.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'public') diff --git a/public/scripts/chat.js b/public/scripts/chat.js index c1dee3e..040378c 100644 --- a/public/scripts/chat.js +++ b/public/scripts/chat.js @@ -140,7 +140,7 @@ function chat() { ); encryption.getMessages( connectedPeer.peer, - await encryption.getPublicKeyPeerId(connectedPeer.peer), + await encryption.getPeerPublicKey(connectedPeer.peer), await encryption.getPrivateKey(), fingerprint, ) .then(messages => messages.forEach(async data => await receivedMessage(`${data.message} - ${data.time}`, true))); @@ -164,7 +164,7 @@ function chat() { console.log('[LOG] Connected with', connectedPeer.peer); encryption.getMessages( connectedPeer.peer, - await encryption.getPublicKeyPeerId(connectedPeer.peer), + await encryption.getPeerPublicKey(connectedPeer.peer), await encryption.getPrivateKey(), fingerprint, ) .then(messages => messages.forEach(async data => await receivedMessage(`${data.message} - ${data.time}`, true))); -- cgit v1.2.3