diff --git a/src/App.svelte b/src/App.svelte index abe23351..8994bfe3 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -11,6 +11,7 @@ import Feed from "src/routes/Feed.svelte" import Login from "src/routes/Login.svelte" import Profile from "src/routes/Profile.svelte" + import Keys from "src/routes/Keys.svelte" import RelayList from "src/routes/RelayList.svelte" import UserDetail from "src/routes/UserDetail.svelte" import NoteCreate from "src/routes/NoteCreate.svelte" @@ -53,9 +54,14 @@ - + + {#key params.room} + + {/key} + + @@ -67,11 +73,13 @@ class:-ml-56={!$menuIsOpen} > {#if $user} -
  • -
    - {$user.name} +
  • + +
  • {/if}
  • @@ -87,8 +95,8 @@
  • {#if $user}
  • - - Profile + + Keys
  • diff --git a/src/partials/Anchor.svelte b/src/partials/Anchor.svelte index 89a66b86..58ded6f2 100644 --- a/src/partials/Anchor.svelte +++ b/src/partials/Anchor.svelte @@ -2,6 +2,7 @@ import cx from "classnames" import {switcher} from "hurdak/lib/hurdak" + export let external = false export let type = "anchor" export let href @@ -15,4 +16,6 @@ ) - + + + diff --git a/src/partials/chat/RoomList.svelte b/src/partials/chat/RoomList.svelte index 6299f294..3ab9baee 100644 --- a/src/partials/chat/RoomList.svelte +++ b/src/partials/chat/RoomList.svelte @@ -14,10 +14,8 @@ const createRoom = () => navigate(`/chat/new`) - // TODO hack: there should be a way to re-render a route when the url changes const setRoom = id => { - navigate(`/chat`) - setTimeout(() => navigate(`/chat/${id}`)) + navigate(`/chat/${id}`) } onMount(() => { diff --git a/src/routes/ChatRoom.svelte b/src/routes/ChatRoom.svelte index 0ed735e6..cd645aa1 100644 --- a/src/routes/ChatRoom.svelte +++ b/src/routes/ChatRoom.svelte @@ -146,19 +146,19 @@ {/if} -
    +