adding peers to messages
This commit is contained in:
parent
1c85c78e4c
commit
8458430989
1
app.js
1
app.js
@ -301,6 +301,7 @@ function sendMessage(e) {
|
|||||||
message,
|
message,
|
||||||
avatar: config.userAvatar,
|
avatar: config.userAvatar,
|
||||||
topic: b4a.toString(currentRoom.topic, 'hex'),
|
topic: b4a.toString(currentRoom.topic, 'hex'),
|
||||||
|
peers: [...swarm.connections].map(peer => peer.remotePublicKey.toString('hex')),
|
||||||
timestamp: Date.now(),
|
timestamp: Date.now(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user