diff --git a/web/src/routes/(app)/TimelineView.svelte b/web/src/routes/(app)/TimelineView.svelte index 97fd3aa51..3d9359e63 100644 --- a/web/src/routes/(app)/TimelineView.svelte +++ b/web/src/routes/(app)/TimelineView.svelte @@ -25,6 +25,12 @@ let innerHeight: number; let scrollY = writable(0); + $: visibleItems = items.filter( + (item) => + !isMuteEvent(item.event) && + !$deletedEventIdsByPubkey.get(item.event.pubkey)?.has(item.event.id) + ); + onMount(() => { console.log('Timeline.onMount'); scrollY.subscribe(async (y) => { @@ -104,19 +110,15 @@
- - {#if !isMuteEvent(data.event) && !$deletedEventIdsByPubkey - .get(data.event.pubkey) - ?.has(data.event.id)} - -
viewDetail(e, data.event)} - > - -
- {/if} + + +
viewDetail(e, data.event)} + > + +