From d4d5979a35ba2192d3ed3e616d32b121de6727ed Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Wed, 7 May 2025 08:57:49 -0700 Subject: [PATCH] Fix missing room images and room overflow in nav --- src/app/commands.ts | 4 +-- src/app/components/MenuOtherSpaces.svelte | 15 ++++++++ src/app/components/PrimaryNav.svelte | 37 +++++++++++++++---- src/app/editor/index.ts | 43 +++++++++++++---------- src/app/state.ts | 4 +-- src/assets/icons/Menu Dots Circle.svg | 4 +++ src/lib/components/Icon.svelte | 2 ++ 7 files changed, 80 insertions(+), 29 deletions(-) create mode 100644 src/app/components/MenuOtherSpaces.svelte create mode 100644 src/assets/icons/Menu Dots Circle.svg diff --git a/src/app/commands.ts b/src/app/commands.ts index 8cea264..136c126 100644 --- a/src/app/commands.ts +++ b/src/app/commands.ts @@ -259,7 +259,7 @@ export const setInboxRelayPolicy = (url: string, enabled: boolean) => { export const checkRelayAccess = async (url: string, claim = "") => { const socket = Pool.get().get(url) - await socket.auth.attemptAuth(signer.get().sign) + await socket.auth.attemptAuth(e => signer.get()?.sign(e)) const thunk = publishThunk({ event: createEvent(AUTH_JOIN, {tags: [["claim", claim]]}), @@ -307,7 +307,7 @@ export const checkRelayAuth = async (url: string, timeout = 3000) => { const socket = Pool.get().get(url) const okStatuses = [AuthStatus.None, AuthStatus.Ok] - await socket.auth.attemptAuth(signer.get().sign) + await socket.auth.attemptAuth(e => signer.get()?.sign(e)) // Only raise an error if it's not a timeout. // If it is, odds are the problem is with our signer, not the relay diff --git a/src/app/components/MenuOtherSpaces.svelte b/src/app/components/MenuOtherSpaces.svelte new file mode 100644 index 0000000..63a3185 --- /dev/null +++ b/src/app/components/MenuOtherSpaces.svelte @@ -0,0 +1,15 @@ + + + diff --git a/src/app/components/PrimaryNav.svelte b/src/app/components/PrimaryNav.svelte index 1402a40..85dc24b 100644 --- a/src/app/components/PrimaryNav.svelte +++ b/src/app/components/PrimaryNav.svelte @@ -1,6 +1,7 @@ + +