Set up default messaging relays

This commit is contained in:
Jon Staab
2026-03-23 14:21:04 -07:00
parent b716f3f792
commit 1de6d7a874
11 changed files with 173 additions and 114 deletions
+5 -3
View File
@@ -59,7 +59,7 @@
} from "@app/core/state"
import {setSpaceNotifications} from "@app/core/commands"
import {pushModal} from "@app/util/modal"
import {makeSpacePath, makeChatPath} from "@app/util/routes"
import {makeSpacePath, goToChat} from "@app/util/routes"
const {url} = $props()
@@ -115,6 +115,8 @@
const addRoom = () => pushModal(RoomCreate, {url}, {replaceState})
const contactOwner = () => goToChat([$relay!.pubkey!])
const shouldNotify = deriveShouldNotify(url)
const toggleSpaceNotifications = () => {
@@ -194,10 +196,10 @@
{/if}
{#if $relay?.pubkey && $relay.pubkey !== $pubkey}
<li>
<Link href={makeChatPath([$relay.pubkey])}>
<Button onclick={contactOwner}>
<Icon icon={Letter} />
Contact Owner
</Link>
</Button>
</li>
{/if}
<li>