From 0672654b15b3cae7a87a302ad654f7bcc5974827 Mon Sep 17 00:00:00 2001 From: Sjmarf <78750526+Sjmarf@users.noreply.github.com> Date: Fri, 12 Jan 2024 06:18:00 +0000 Subject: [PATCH] Fix toggling "hide read" not immediately updating (#852) --- Mlem/Views/Tabs/Feeds/PostFeedView.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Mlem/Views/Tabs/Feeds/PostFeedView.swift b/Mlem/Views/Tabs/Feeds/PostFeedView.swift index 0665a48e0..c0ff94f84 100644 --- a/Mlem/Views/Tabs/Feeds/PostFeedView.swift +++ b/Mlem/Views/Tabs/Feeds/PostFeedView.swift @@ -112,6 +112,7 @@ struct PostFeedView: View { } .onChange(of: showReadPosts) { _ in Task(priority: .userInitiated) { + postTracker.filter = self.filter await postTracker.refresh(clearBeforeFetch: true) } }