From f22671cc66f4e244e16d26a9c8f2aacad13f5c8c Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Mon, 27 Feb 2023 06:21:49 +0100 Subject: [PATCH] Fix jump to latest not working on home --- Packages/Timeline/Sources/Timeline/TimelineViewModel.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Packages/Timeline/Sources/Timeline/TimelineViewModel.swift b/Packages/Timeline/Sources/Timeline/TimelineViewModel.swift index 1bab6eda..078eb9fe 100644 --- a/Packages/Timeline/Sources/Timeline/TimelineViewModel.swift +++ b/Packages/Timeline/Sources/Timeline/TimelineViewModel.swift @@ -144,8 +144,9 @@ extension TimelineViewModel { } private func clearHomeCache() async { - if let client, timeline == .home { + if let client { await cache.clearCache(for: client.id) + await cache.setLatestSeenStatuses(ids: [], for: client) } } }