forked from snxraven/LinkUp-P2P-Chat
Merge branch 'main' of https://git.ssh.surf/snxraven/LinkUp-P2P-Chat
This commit is contained in:
commit
33e0a13f93
2
app.js
2
app.js
@ -302,7 +302,9 @@ 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(),
|
||||
readableTimestamp: new Date().toLocaleString(), // Added human-readable timestamp
|
||||
});
|
||||
|
||||
const peers = [...swarm.connections];
|
||||
|
Loading…
Reference in New Issue
Block a user