From 653e2de752a97e377fc9963ba60d9408e7089528 Mon Sep 17 00:00:00 2001
From: Owen Jacobson <owen@grimoire.ca>
Date: Tue, 8 Oct 2024 22:10:04 -0400
Subject: Flatten nested `channel` and `message` structs in events and API
 responses.

This structure didn't accomplish anything and made certain refactorings harder.
---
 hi-ui/src/lib/Message.svelte | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'hi-ui/src/lib/Message.svelte')

diff --git a/hi-ui/src/lib/Message.svelte b/hi-ui/src/lib/Message.svelte
index efc6641..7c60ac0 100644
--- a/hi-ui/src/lib/Message.svelte
+++ b/hi-ui/src/lib/Message.svelte
@@ -5,7 +5,7 @@
 
     export let at;  // XXX: Omitted for now.
     export let sender;
-    export let message;
+    export let body;
 
     let timestamp = new Date(at).toTimeString();
 </script>
@@ -17,7 +17,7 @@
     </span>
     <span class="timestamp chip variant-soft absolute top-0 right-0">{at}</span>
     <section class="p-4">
-        <SvelteMarkdown source={message.body} />
+        <SvelteMarkdown source={body} />
     </section>
 </div>
 
-- 
cgit v1.2.3

