From 58267897ca0ef12ca932ff94fcbb741ba7ef9510 Mon Sep 17 00:00:00 2001 From: fr00t Date: Tue, 5 Mar 2024 23:36:48 +0100 Subject: [PATCH] Added hash to websocket messages --- syncers/huginSyncer.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/syncers/huginSyncer.js b/syncers/huginSyncer.js index 1d714aa..9406fa8 100644 --- a/syncers/huginSyncer.js +++ b/syncers/huginSyncer.js @@ -119,6 +119,7 @@ module.exports.backgroundSyncMessages = async () => { encryptedPostExists(txHash).then(result => { if (result === null) { saveEncryptedPost(txHash, boxObj) + boxObj.hash = txHash ws.send(JSON.stringify(boxObj)) } }) @@ -129,6 +130,7 @@ module.exports.backgroundSyncMessages = async () => { encryptedGroupPostExists(txHash).then(result => { if (result === null) { saveEncryptedGroupPost(txHash, boxObj) + boxObj.hash = txHash ws.send(JSON.stringify(boxObj)) } })