diff --git a/frontend/src/components/Message.svelte b/frontend/src/components/Message.svelte index 5d9da29..d07e1be 100644 --- a/frontend/src/components/Message.svelte +++ b/frontend/src/components/Message.svelte @@ -1,6 +1,6 @@ @@ -49,7 +49,9 @@
{ message.author_username } { message.content } - + {#if $userInfoStore && message.author_id === $userInfoStore.id} + + {/if}
diff --git a/frontend/src/components/Sidebar.svelte b/frontend/src/components/Sidebar.svelte index e0500d6..f282425 100644 --- a/frontend/src/components/Sidebar.svelte +++ b/frontend/src/components/Sidebar.svelte @@ -2,7 +2,7 @@ import { HashIcon, PlusIcon, MoreVerticalIcon } from "svelte-feather-icons"; import { quadInOut } from "svelte/easing"; import { fly } from "svelte/transition"; - import { channels, overlayStore, selectedChannel, showChannelView, showSidebar, smallViewport } from "../stores"; + import { channels, overlayStore, selectedChannel, showChannelView, showSidebar, smallViewport, userInfoStore } from "../stores"; import UserTopBar from "./UserTopBar.svelte"; let pendingSelectChannel = null; @@ -40,9 +40,11 @@ { channel.name } - + {#if $userInfoStore && channel.owner_id === $userInfoStore.id} + + {/if} {/each}