From 215b0c5cb2ff0ef0b2c7b5549704e23d651a4df9 Mon Sep 17 00:00:00 2001
From: Owen Jacobson <owen@grimoire.ca>
Date: Thu, 10 Oct 2024 21:51:10 -0400
Subject: Hoist the UI one step up further

---
 ui/src/lib/components/ActiveChannel.svelte | 27 ---------------------------
 1 file changed, 27 deletions(-)
 delete mode 100644 ui/src/lib/components/ActiveChannel.svelte

(limited to 'ui/src/lib/components/ActiveChannel.svelte')

diff --git a/ui/src/lib/components/ActiveChannel.svelte b/ui/src/lib/components/ActiveChannel.svelte
deleted file mode 100644
index 978e952..0000000
--- a/ui/src/lib/components/ActiveChannel.svelte
+++ /dev/null
@@ -1,27 +0,0 @@
-<script>
-    import { activeChannel, messages } from '$lib/store';
-    import Message from './Message.svelte';
-
-    let container;
-    $: messageList = $activeChannel.isSet() ? $messages.inChannel($activeChannel.get()) : [];
-
-    // TODO: eventually, store scroll height/last unread in channel? scroll there?
-
-    let scroll = (message) => {
-        message.scrollIntoView();
-    }
-</script>
-
-<div class="container" bind:this={container}>
-    {#each messageList as message}
-        <div use:scroll>
-            <Message {...message} />
-        </div>
-    {/each}
-</div>
-
-<style>
-    .container {
-        overflow: scroll;
-    }
-</style>
-- 
cgit v1.2.3

