aboutsummaryrefslogtreecommitdiffhomepage
path: root/public
diff options
context:
space:
mode:
authorMarvin Borner2019-02-13 19:07:03 +0100
committerMarvin Borner2019-02-13 19:07:03 +0100
commit5214443a65568049849649bc63976a1df9ce04eb (patch)
tree96f6d9e4b4142ddb4f9b9e7cea22c239477a270c /public
parentc4f0ad95fa4fb4a3e7998e08318690c59e0934d5 (diff)
Fixed issue with contact adding
Diffstat (limited to 'public')
-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)));