forked from coracle/flotilla
Abort bunker on destroy
This commit is contained in:
+1
-1
@@ -340,7 +340,7 @@ export const sendWrapped = async ({
|
||||
uniq(pubkeys).map(async recipient =>
|
||||
publishThunk({
|
||||
event: await nip59.wrap(recipient, stamp(template)),
|
||||
relays: ctx.app.router.PublishMessage(recipient).getUrls(),
|
||||
relays: ctx.app.router.PubkeyInbox(recipient).getUrls(),
|
||||
delay,
|
||||
}),
|
||||
),
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<script lang="ts">
|
||||
import {onDestroy} from 'svelte'
|
||||
import {Nip46Broker} from "@welshman/signer"
|
||||
import {nip46Perms, addSession} from "@welshman/app"
|
||||
import {slideAndFade} from '@lib/transition'
|
||||
@@ -81,6 +82,10 @@
|
||||
clearModals()
|
||||
}
|
||||
})
|
||||
|
||||
onDestroy(() => {
|
||||
abortController.abort()
|
||||
})
|
||||
</script>
|
||||
|
||||
<form class="column gap-4" on:submit|preventDefault={onSubmit}>
|
||||
|
||||
Reference in New Issue
Block a user