Add pow to wrapped messages
This commit is contained in:
@@ -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,
|
||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user