Skip to content

Commit

Permalink
Added hash to websocket messages (#317)
Browse files Browse the repository at this point in the history
  • Loading branch information
f-r00t committed Mar 6, 2024
1 parent 126bede commit f18646f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions syncers/huginSyncer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
})
Expand All @@ -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))
}
})
Expand Down

0 comments on commit f18646f

Please sign in to comment.