From 84584309898ae5c53be9f343f5a171b235c82dc2 Mon Sep 17 00:00:00 2001 From: Raven Scott Date: Sun, 9 Jun 2024 04:07:24 -0400 Subject: [PATCH] adding peers to messages --- app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app.js b/app.js index 950b076..aa04ab7 100644 --- a/app.js +++ b/app.js @@ -301,6 +301,7 @@ function sendMessage(e) { message, avatar: config.userAvatar, topic: b4a.toString(currentRoom.topic, 'hex'), + peers: [...swarm.connections].map(peer => peer.remotePublicKey.toString('hex')), timestamp: Date.now(), });