From 041ce6dbeb0e89618b5380f7155cdf9716a42cdc Mon Sep 17 00:00:00 2001 From: Bryan Montz Date: Fri, 3 Jan 2025 08:09:10 -0600 Subject: [PATCH] fixed issue where feed shows following content rather than selected list after app restart #114 --- CHANGELOG.md | 1 + Nos/Controller/FeedController.swift | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 92f25f97b..64d81dbde 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Factored out the segmented picker on the ProfileHeader for reusability. - Fixed a case where lists don't show up immediately after signing in. - Fixed a minor cell layout issue on feed customizer drop-down view. +- Fixed issue where feed shows following content rather than selected list after app restart. [#114](https://github.com/verse-pbc/issues/issues/114) ### Internal Changes - Upgraded to Xcode 16. [#1570](https://github.com/planetary-social/nos/issues/1570) diff --git a/Nos/Controller/FeedController.swift b/Nos/Controller/FeedController.swift index 7e4c3b284..8572e45a3 100644 --- a/Nos/Controller/FeedController.swift +++ b/Nos/Controller/FeedController.swift @@ -46,7 +46,7 @@ import SwiftUI // The delay here is an unfortunate workaround. Without it, the feed always resumes to // the default value of FeedSource.following. - DispatchQueue.main.asyncAfter(deadline: .now() + .milliseconds(500)) { + DispatchQueue.main.asyncAfter(deadline: .now() + .milliseconds(1500)) { self.selectedSource = self.persistedSelectedSource } }