Set up default messaging relays
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user