diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2025-06-19 11:33:17 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2025-06-20 22:27:37 -0400 |
| commit | 639f4b422adb0a6fc809161dd816d8382cf88138 (patch) | |
| tree | a84ed9111fbdab697af6e1bd3c2275a5b955a6c3 /ui/lib/state/remote/messages.svelte.js | |
| parent | 4b522c804db8155f74a734c95ed962d996b2c692 (diff) | |
Boot the client by consuming events.
We use the same event processing glue that the client has for keeping up with live events, which means that a significant chunk of state management code goes away entirely.
Diffstat (limited to 'ui/lib/state/remote/messages.svelte.js')
| -rw-r--r-- | ui/lib/state/remote/messages.svelte.js | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/ui/lib/state/remote/messages.svelte.js b/ui/lib/state/remote/messages.svelte.js index 7ce28b4..1be001b 100644 --- a/ui/lib/state/remote/messages.svelte.js +++ b/ui/lib/state/remote/messages.svelte.js @@ -26,15 +26,6 @@ class Message { export class Messages { all = $state([]); - static boot(messages) { - const all = messages.map(Message.boot); - return new Messages({ all }); - } - - constructor({ all }) { - this.all = all; - } - add({ id, at, channel, sender, body }) { const message = Message.boot({ id, at, channel, sender, body }); this.all.push(message); |
