Fix jump to latest not working on home

This commit is contained in:
Thomas Ricouard 2023-02-27 06:21:49 +01:00
parent 8a0cbcaa02
commit f22671cc66

View file

@ -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)
}
}
}