From af9260390bfedca44e14942451fc1d16367ed1e5 Mon Sep 17 00:00:00 2001 From: f-r00t Date: Sat, 2 Mar 2024 12:00:46 +0100 Subject: [PATCH] Readded WebSocket events --- syncers/huginSyncer.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/syncers/huginSyncer.js b/syncers/huginSyncer.js index fd560a0..1d714aa 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) + ws.send(JSON.stringify(boxObj)) } }) } @@ -128,6 +129,7 @@ module.exports.backgroundSyncMessages = async () => { encryptedGroupPostExists(txHash).then(result => { if (result === null) { saveEncryptedGroupPost(txHash, boxObj) + ws.send(JSON.stringify(boxObj)) } }) }