fix: processing gift wraps and notifications #193

Merged
enes merged 5 commits from notification-debug into staging 2024-09-12 08:27:00 +00:00
Showing only changes of commit 7163f4aae1 - Show all commits

View File

@ -876,7 +876,6 @@ const processReceivedEvent = async (event: Event, difficulty: number = 5) => {
.processedGiftWraps
if (processedEvents.includes(event.id)) return
// Consider the gift wrap as processed immediately
store.dispatch(updateProcessedGiftWraps([...processedEvents, event.id]))
// validate PoW
@ -890,6 +889,7 @@ const processReceivedEvent = async (event: Event, difficulty: number = 5) => {
event.pubkey,
event.content
)
const internalUnsignedEvent = await parseJson<UnsignedEvent>(decrypted).catch(
(err) => {
console.log(