From bb26b5c2a82e7c55ef1658c24da0a67a1fa56b1b Mon Sep 17 00:00:00 2001 From: MrMasrozYTLIVE <61359286+MrMasrozYTLIVE@users.noreply.github.com> Date: Fri, 14 Jun 2024 17:37:58 +0300 Subject: [PATCH] Revert all changes i did to app.js --- app.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/app.js b/app.js index 3608b34..af1e06c 100644 --- a/app.js +++ b/app.js @@ -212,8 +212,7 @@ async function handleConnection(connection, info) { const iconMessage = JSON.stringify({ type: 'icon', username: config.userName, - avatar: b4a.toString(iconBuffer, 'base64'), - timestamp: Date.now() + avatar: b4a.toString(iconBuffer, 'base64') }); console.log('Sending icon to new peer:', iconMessage); connection.write(iconMessage); @@ -293,8 +292,7 @@ function setupTalkButton() { audio: b4a.toString(buffer, 'base64'), audioType: audioBlob.type, avatar: updatePortInUrl(config.userAvatar), - topic: topic, - timestamp: Date.now() + topic: topic }; console.log('Sending audio message:', audioMessage); // Debugging log @@ -596,8 +594,7 @@ async function handleFileInput(event) { file: b4a.toString(buffer, 'base64'), fileType: file.type, avatar: updatePortInUrl(config.userAvatar), - topic: topic, - timestamp: Date.now() + topic: topic }; console.log('Sending file message:', fileMessage); // Debugging log