summaryrefslogtreecommitdiff
path: root/ui/routes/(app)/ch
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2024-11-06 18:42:38 -0500
committerOwen Jacobson <owen@grimoire.ca>2024-11-06 20:44:21 -0500
commit14dc9e1c1581fa04b37e81d76499f705512660b2 (patch)
tree0a44ce50576fb501947fd7da1891a852981144b5 /ui/routes/(app)/ch
parent1776711aaad56efe67365d69e2e9f8aa76ee67ef (diff)
Split message runs after ten minutes' silence.
I've also refactored how runs are processed, to avoid re-splitting runs every time the channel view is rendered. They're generated when messages are ingested into the `$messages` store, instead.
Diffstat (limited to 'ui/routes/(app)/ch')
-rw-r--r--ui/routes/(app)/ch/[channel]/+page.svelte4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/routes/(app)/ch/[channel]/+page.svelte b/ui/routes/(app)/ch/[channel]/+page.svelte
index 49c1c29..0961665 100644
--- a/ui/routes/(app)/ch/[channel]/+page.svelte
+++ b/ui/routes/(app)/ch/[channel]/+page.svelte
@@ -2,12 +2,14 @@
import { page } from '$app/stores';
import ActiveChannel from '$lib/components/ActiveChannel.svelte';
import MessageInput from '$lib/components/MessageInput.svelte';
+ import { messages } from '$lib/store';
let channel = $derived($page.params.channel);
+ let messageRuns = $derived($messages.inChannel(channel));
</script>
<div class="active-channel">
- <ActiveChannel {channel} />
+ <ActiveChannel {messageRuns} />
</div>
<div class="create-message max-h-full">
<MessageInput {channel} />