From a01b516844c2a89af9446864b3eccccdd5afb9dc Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Tue, 6 May 2025 01:28:28 -0400 Subject: Render messages as ghosts when there's a pending delete, too. --- ui/lib/outbox.svelte.js | 1 + 1 file changed, 1 insertion(+) (limited to 'ui/lib/outbox.svelte.js') diff --git a/ui/lib/outbox.svelte.js b/ui/lib/outbox.svelte.js index 0e4cf29..472c58b 100644 --- a/ui/lib/outbox.svelte.js +++ b/ui/lib/outbox.svelte.js @@ -51,6 +51,7 @@ class CreateChannel { export class Outbox { pending = $state([]); messages = $derived(this.pending.filter((operation) => operation instanceof PostToChannel)); + deleted = $derived(this.pending.filter((operation) => operation instanceof DeleteMessage)); static empty() { return new Outbox([]); -- cgit v1.2.3