diff options
| author | Kit La Touche <kit@transneptune.net> | 2025-02-16 22:00:57 -0500 |
|---|---|---|
| committer | Kit La Touche <kit@transneptune.net> | 2025-02-20 21:53:25 -0500 |
| commit | daaf37a1ed3760f03fceb1123ebe80de3a2f280c (patch) | |
| tree | e823603aa1683a2c07fd08dde724780147822348 /ui/routes/(app)/ch | |
| parent | 43af74832f9a2fa7f40dc71985eec9b0ada087dd (diff) | |
Separate channel metadata out into its own store
This is stored locally, and, while parallel to channel info, is not the
same as.
Eventually, this may hold info about moot/decayed channels, and grow
unbounded. That'll need to be addressed.
Diffstat (limited to 'ui/routes/(app)/ch')
| -rw-r--r-- | ui/routes/(app)/ch/[channel]/+page.svelte | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/routes/(app)/ch/[channel]/+page.svelte b/ui/routes/(app)/ch/[channel]/+page.svelte index d64a8c9..7bd0e10 100644 --- a/ui/routes/(app)/ch/[channel]/+page.svelte +++ b/ui/routes/(app)/ch/[channel]/+page.svelte @@ -3,7 +3,7 @@ import { page } from '$app/stores'; import ActiveChannel from '$lib/components/ActiveChannel.svelte'; import MessageInput from '$lib/components/MessageInput.svelte'; - import { channelsList, messages } from '$lib/store'; + import { channelsMetaList, messages } from '$lib/store'; let channel = $derived($page.params.channel); let messageRuns = $derived($messages.inChannel(channel)); @@ -36,7 +36,7 @@ const lastInView = getLastVisibleMessage(); if (lastInView) { const at = DateTime.fromISO(lastInView.dataset.at); - $channelsList.updateLastReadAt(channel, at); + $channelsMetaList.updateLastReadAt(channel, at); } } |
