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
@@ -14,7 +14,7 @@
import {userSpaceUrls, PLATFORM_RELAYS} from "@app/core/state"
import {pushModal} from "@app/util/modal"
import {notifications} from "@app/util/notifications"
import {goToLastChat} from "@app/util/routes"
import {goToChat} from "@app/util/routes"
type Props = {
children?: Snippet
@@ -22,6 +22,8 @@
const {children}: Props = $props()
const chatHandler = () => goToChat()
const showSettingsMenu = () => pushModal(MenuSettings)
const anySpaceNotifications = $derived($userSpaceUrls.some(p => $notifications.has(p)))
@@ -48,7 +50,7 @@
</PrimaryNavItem>
<PrimaryNavItem
title="Messages"
onclick={goToLastChat}
onclick={chatHandler}
class="tooltip-right"
notification={$notifications.has("/chat")}>
<ImageIcon alt="Messages" src={Letter} size={8} />
@@ -76,7 +78,7 @@
<PrimaryNavItem
title="Messages"
href="/chat"
onclick={goToLastChat}
onclick={chatHandler}
notification={$notifications.has("/chat")}>
<ImageIcon alt="Messages" src={Letter} size={8} />
</PrimaryNavItem>