forked from coracle/flotilla
Add pow to wrapped messages
This commit is contained in:
@@ -103,6 +103,7 @@
|
||||
await sendWrapped({
|
||||
event: makeDelete({event: eventToEdit, protect: false}),
|
||||
recipients: pubkeys,
|
||||
pow: 16,
|
||||
})
|
||||
}
|
||||
|
||||
@@ -152,6 +153,7 @@
|
||||
event,
|
||||
recipients: pubkeys,
|
||||
delay: $userSettingsValues.send_delay + ms(i),
|
||||
pow: 16,
|
||||
}),
|
||||
),
|
||||
)
|
||||
|
||||
@@ -40,10 +40,10 @@
|
||||
const edit = canEdit?.(event) ? () => onEdit?.(event) : undefined
|
||||
|
||||
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) =>
|
||||
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})
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
sendWrapped({
|
||||
event: makeReaction({event, content: emoji.unicode, protect: false}),
|
||||
recipients: pubkeys,
|
||||
pow: 16,
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
sendWrapped({
|
||||
event: makeReaction({event, content: emoji.unicode, protect: false}),
|
||||
recipients: pubkeys,
|
||||
pow: 16,
|
||||
})
|
||||
}).bind(undefined, event, pubkeys)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user