From 632882a5119769ad441c051ee9e72348e2e0d703 Mon Sep 17 00:00:00 2001 From: Danny Liu Date: Tue, 20 Feb 2024 15:12:50 -0800 Subject: [PATCH] =?UTF-8?q?add=20message=20filtering=20in=20+page.svelte?= =?UTF-8?q?=20to=20filter=20out=20deleted=20messages=20in=20payload=20?= =?UTF-8?q?=F0=9F=97=91=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes/(app)/+page.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/(app)/+page.svelte b/src/routes/(app)/+page.svelte index 1d91a614..33409ec3 100644 --- a/src/routes/(app)/+page.svelte +++ b/src/routes/(app)/+page.svelte @@ -334,7 +334,7 @@ content: $settings.system } : undefined, - ...messages + ...messages.filter(message => !message.deleted) ] .filter((message) => message) .map((message, idx, arr) => ({ @@ -540,7 +540,7 @@ content: $settings.system } : undefined, - ...messages + ...messages.filter(message => !message.deleted) ] .filter((message) => message) .map((message, idx, arr) => ({