diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2024-11-06 18:42:38 -0500 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2024-11-06 20:44:21 -0500 |
| commit | 14dc9e1c1581fa04b37e81d76499f705512660b2 (patch) | |
| tree | 0a44ce50576fb501947fd7da1891a852981144b5 /ui/routes/(app) | |
| parent | 1776711aaad56efe67365d69e2e9f8aa76ee67ef (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)')
| -rw-r--r-- | ui/routes/(app)/ch/[channel]/+page.svelte | 4 |
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} /> |
