From f18646fc19fac377e4ff6b6e572ce6f3aa7fdf6f Mon Sep 17 00:00:00 2001 From: fr00t Date: Wed, 6 Mar 2024 06:37:27 +0100 Subject: [PATCH] Added hash to websocket messages (#317) --- 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)) } })