From f38881f3253b3a128154ffd95655859e3dc629dc Mon Sep 17 00:00:00 2001
From: Kit La Touche <kit@transneptune.net>
Date: Sun, 3 Nov 2024 21:43:00 -0500
Subject: Run spaces-style prettier formatting

---
 ui/lib/components/ActiveChannel.svelte | 62 +++++++++++++++++-----------------
 1 file changed, 31 insertions(+), 31 deletions(-)

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

diff --git a/ui/lib/components/ActiveChannel.svelte b/ui/lib/components/ActiveChannel.svelte
index ac1a0b9..a4ccd24 100644
--- a/ui/lib/components/ActiveChannel.svelte
+++ b/ui/lib/components/ActiveChannel.svelte
@@ -1,42 +1,42 @@
 <script>
-	import { messages } from '$lib/store';
-	import MessageRun from './MessageRun.svelte';
+  import { messages } from '$lib/store';
+  import MessageRun from './MessageRun.svelte';
 
-	let { channel } = $props();
-	let messageList = $derived(channel !== null ? $messages.inChannel(channel) : []);
+  let { channel } = $props();
+  let messageList = $derived(channel !== null ? $messages.inChannel(channel) : []);
 
-	function* chunkBy(xs, fn) {
-		let chunk;
-		let key;
-		for (let x of xs) {
-			let newKey = fn(x);
-			if (key !== newKey) {
-				if (chunk !== undefined) {
-					yield [key, chunk];
-				}
+  function* chunkBy(xs, fn) {
+    let chunk;
+    let key;
+    for (let x of xs) {
+      let newKey = fn(x);
+      if (key !== newKey) {
+        if (chunk !== undefined) {
+          yield [key, chunk];
+        }
 
-				chunk = [x];
-				key = newKey;
-			} else {
-				chunk.push(x);
-			}
-		}
-		if (chunk !== undefined) {
-			yield [key, chunk];
-		}
-	}
+        chunk = [x];
+        key = newKey;
+      } else {
+        chunk.push(x);
+      }
+    }
+    if (chunk !== undefined) {
+      yield [key, chunk];
+    }
+  }
 </script>
 
 <div class="container">
-	{#each chunkBy(messageList, (msg) => msg.sender) as [sender, messages]}
-		<div>
-			<MessageRun {sender} {messages} />
-		</div>
-	{/each}
+  {#each chunkBy(messageList, (msg) => msg.sender) as [sender, messages]}
+    <div>
+      <MessageRun {sender} {messages} />
+    </div>
+  {/each}
 </div>
 
 <style>
-	.container {
-		overflow: auto;
-	}
+  .container {
+    overflow: auto;
+  }
 </style>
-- 
cgit v1.2.3

