From 92ba56b9fc6a16829ceefb1112c0ac0f34ce29ec Mon Sep 17 00:00:00 2001 From: MrMasrozYTLIVE <61359286+MrMasrozYTLIVE@users.noreply.github.com> Date: Mon, 10 Jun 2024 21:25:41 +0300 Subject: [PATCH] Added topic to file attachment json --- app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index 5a5a527..6c3dbf7 100644 --- a/app.js +++ b/app.js @@ -307,7 +307,7 @@ function sendMessage(e) { message, avatar: config.userAvatar, topic: b4a.toString(currentRoom.topic, 'hex'), - peers: peersPublicKeys, + peers: peersPublicKeys, // Deprecated. To be deleted in future updates timestamp: Date.now(), readableTimestamp: new Date().toLocaleString(), // Added human-readable timestamp }); @@ -327,6 +327,7 @@ function sendFileMessage(name, fileUrl, fileType, avatar) { fileUrl, fileType, avatar, + topic: b4a.toString(currentRoom.topic, 'hex'), timestamp: Date.now(), });