Populate feeds with default accounts

This commit is contained in:
Jon Staab
2024-10-11 15:29:54 -07:00
parent e21063f247
commit f5461d551e
6 changed files with 30 additions and 17 deletions
+2 -3
View File
@@ -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
View File
@@ -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
}