diff --git a/src/lib/components/MessageInput.svelte b/src/lib/components/MessageInput.svelte index 99a5704..bba8788 100644 --- a/src/lib/components/MessageInput.svelte +++ b/src/lib/components/MessageInput.svelte @@ -40,8 +40,7 @@ createMessage(message); - // Store the last message that was sent - lastMessageSent = newMessageText; + // Clear the input after sending the message newMessageText = ''; } } diff --git a/src/lib/components/Messages.svelte b/src/lib/components/Messages.svelte index b6a2e79..9a7019c 100644 --- a/src/lib/components/Messages.svelte +++ b/src/lib/components/Messages.svelte @@ -1,6 +1,6 @@
@@ -36,13 +36,12 @@

{message.timestamp}

{message.text}

- - - {#if message.composite} -
- -
- {/if} + + {#if message.composite} +
+ +
+ {/if} {/each}