Add pow to wrapped messages

This commit is contained in:
Jon Staab
2026-03-30 11:22:22 -07:00
parent a66193ff45
commit 2da5dee6bd
4 changed files with 6 additions and 2 deletions
+2
View File
@@ -103,6 +103,7 @@
await sendWrapped({ await sendWrapped({
event: makeDelete({event: eventToEdit, protect: false}), event: makeDelete({event: eventToEdit, protect: false}),
recipients: pubkeys, recipients: pubkeys,
pow: 16,
}) })
} }
@@ -152,6 +153,7 @@
event, event,
recipients: pubkeys, recipients: pubkeys,
delay: $userSettingsValues.send_delay + ms(i), delay: $userSettingsValues.send_delay + ms(i),
pow: 16,
}), }),
), ),
) )
+2 -2
View File
@@ -40,10 +40,10 @@
const edit = canEdit?.(event) ? () => onEdit?.(event) : undefined const edit = canEdit?.(event) ? () => onEdit?.(event) : undefined
const deleteReaction = (event: TrustedEvent) => const deleteReaction = (event: TrustedEvent) =>
sendWrapped({event: makeDelete({event, protect: false}), recipients: pubkeys}) sendWrapped({event: makeDelete({event, protect: false}), recipients: pubkeys, pow: 16})
const createReaction = (template: EventContent) => const createReaction = (template: EventContent) =>
sendWrapped({event: makeReaction({event, protect: false, ...template}), recipients: pubkeys}) sendWrapped({event: makeReaction({event, protect: false, ...template}), recipients: pubkeys, pow: 16})
const openProfile = () => pushModal(ProfileDetail, {pubkey: event.pubkey}) const openProfile = () => pushModal(ProfileDetail, {pubkey: event.pubkey})
@@ -18,6 +18,7 @@
sendWrapped({ sendWrapped({
event: makeReaction({event, content: emoji.unicode, protect: false}), event: makeReaction({event, content: emoji.unicode, protect: false}),
recipients: pubkeys, recipients: pubkeys,
pow: 16,
}) })
</script> </script>
@@ -31,6 +31,7 @@
sendWrapped({ sendWrapped({
event: makeReaction({event, content: emoji.unicode, protect: false}), event: makeReaction({event, content: emoji.unicode, protect: false}),
recipients: pubkeys, recipients: pubkeys,
pow: 16,
}) })
}).bind(undefined, event, pubkeys) }).bind(undefined, event, pubkeys)