summaryrefslogtreecommitdiff
path: root/ui/lib/components/ActiveChannel.svelte
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2024-10-11 15:52:42 -0400
committerOwen Jacobson <owen@grimoire.ca>2024-10-11 15:52:42 -0400
commitd33c8af14c4adc1c15ab048299e06f9f35ae4de6 (patch)
tree5dce8c28876353893dfd4725dcd093afff7e6dff /ui/lib/components/ActiveChannel.svelte
parent7bcfeb08946e64642b33f4b099ff235ba8527697 (diff)
parent72f3d8c5ab3e2a42cf1a76d0c08815dbe46e50a1 (diff)
Merge branch 'wip/login-route'
Diffstat (limited to 'ui/lib/components/ActiveChannel.svelte')
-rw-r--r--ui/lib/components/ActiveChannel.svelte7
1 files changed, 4 insertions, 3 deletions
diff --git a/ui/lib/components/ActiveChannel.svelte b/ui/lib/components/ActiveChannel.svelte
index 978e952..ece9f55 100644
--- a/ui/lib/components/ActiveChannel.svelte
+++ b/ui/lib/components/ActiveChannel.svelte
@@ -1,10 +1,11 @@
<script>
- import { activeChannel, messages } from '$lib/store';
+ import { messages } from '$lib/store';
import Message from './Message.svelte';
- let container;
- $: messageList = $activeChannel.isSet() ? $messages.inChannel($activeChannel.get()) : [];
+ export let channel = null;
+ $: messageList = channel !== null ? $messages.inChannel(channel) : [];
+ let container;
// TODO: eventually, store scroll height/last unread in channel? scroll there?
let scroll = (message) => {