Populate feeds with default accounts
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<script lang="ts">
|
||||
import {goto} from "$app/navigation"
|
||||
import {pubkey} from '@welshman/app'
|
||||
import Field from "@lib/components/Field.svelte"
|
||||
import Button from "@lib/components/Button.svelte"
|
||||
import Icon from "@lib/components/Icon.svelte"
|
||||
@@ -10,9 +11,7 @@
|
||||
|
||||
const back = () => history.back()
|
||||
|
||||
const onSubmit = async () => {
|
||||
goto(makeChatPath(pubkeys))
|
||||
}
|
||||
const onSubmit = () => goto(makeChatPath([...pubkeys, $pubkey!]))
|
||||
|
||||
let pubkeys: string[] = []
|
||||
</script>
|
||||
|
||||
+2
-2
@@ -17,9 +17,9 @@ export const pushModal = (
|
||||
) => {
|
||||
const id = randomId()
|
||||
|
||||
// TODO: fix memory leak here by listening to history somehow
|
||||
modals.set(id, {component, props, options})
|
||||
goto("#" + id)
|
||||
|
||||
setTimeout(() => goto("#" + id))
|
||||
|
||||
return id
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user