fix: processing gift wraps and notifications #193
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user