From 827e06b26cf257db37876dce25ebc6f252879363 Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Sun, 25 Dec 2022 18:48:50 +0100 Subject: [PATCH] More safeguard --- Packages/Timeline/Sources/Timeline/TimelineViewModel.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Packages/Timeline/Sources/Timeline/TimelineViewModel.swift b/Packages/Timeline/Sources/Timeline/TimelineViewModel.swift index ac01954d..e8f226db 100644 --- a/Packages/Timeline/Sources/Timeline/TimelineViewModel.swift +++ b/Packages/Timeline/Sources/Timeline/TimelineViewModel.swift @@ -96,6 +96,7 @@ class TimelineViewModel: ObservableObject, StatusesFetcher { } func displayPendingStatuses() { + guard timeline == .home else { return } statuses.insert(contentsOf: pendingStatuses, at: 0) pendingStatuses = [] statusesState = .display(statuses: statuses, nextPageState: .hasNextPage)