From 126bede038d5eb95cd00fe218764383cdc2610b4 Mon Sep 17 00:00:00 2001 From: fr00t Date: Sat, 2 Mar 2024 13:04:46 +0100 Subject: [PATCH] Readded WebSocket events (#315) --- 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)) } }) }