Fixed app.js not sending user ID itself and only peers it knows #5

Merged
snxraven merged 26 commits from MiTask/LinkUp-P2P-Chat:main into main 2024-06-10 11:26:59 -04:00
Showing only changes of commit 9587ae4818 - Show all commits

View File

@ -42,7 +42,7 @@ loadCommands().then(commands => {
if (message.type == "icon") return; if (message.type == "icon") return;
console.log(message); console.log(message);
console.log(`Message received from ${message.name}@${peer} at ${new Date(message.timestamp).toLocaleTimeString()}: ${message.message}`); console.log(`Message received from ${message.name}@${message.topic} at ${new Date(message.timestamp).toLocaleTimeString()}: ${message.message}`);
// Check if the message starts with a command prefix // Check if the message starts with a command prefix
if (message.message.startsWith('!')) { if (message.message.startsWith('!')) {