From b98d774cbf818d2c6e1703ddb45250f7e605f9d0 Mon Sep 17 00:00:00 2001 From: Gigi Date: Thu, 16 Oct 2025 01:06:27 +0200 Subject: [PATCH] fix: filter out reads without timestamps - Exclude items without readingTimestamp or markedAt from reads - Prevents 'Just Now' items from appearing in the reads list - Only show reads with valid activity timestamps --- src/services/readsService.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/services/readsService.ts b/src/services/readsService.ts index ee9fab1d..171a78b5 100644 --- a/src/services/readsService.ts +++ b/src/services/readsService.ts @@ -251,8 +251,14 @@ export async function fetchAllReads( } } - // 5. Sort by most recent reading activity + // 5. Filter out items without timestamps and sort by most recent reading activity const sortedReads = Array.from(readsMap.values()) + .filter(item => { + // Only include items that have a timestamp + const hasTimestamp = (item.readingTimestamp && item.readingTimestamp > 0) || + (item.markedAt && item.markedAt > 0) + return hasTimestamp + }) .sort((a, b) => { const timeA = a.readingTimestamp || a.markedAt || 0 const timeB = b.readingTimestamp || b.markedAt || 0