aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--public/scripts/chat.js4
1 files changed, 2 insertions, 2 deletions
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)));