mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-10 00:16:59 +00:00
Two bugs that together caused HomeFeed to always open on Following: 1. FeedScreen was reading feedRepo.pinnedFeeds.value as the source of truth for the first pinned feed. That's a stateIn-derived flow with initial value persistentListOf(); the underlying _feeds StateFlow IS loaded synchronously by FeedDefinitionRepository on construction, but the derived pinnedFeeds doesn't reflect it until the first flow emission propagates — which is too late for `remember` to see. Fixed by reading feedRepo.feeds.value directly and filtering / sorting by pinOrder ourselves. 2. DeckColumnContainer was passing initialFeedMode = FeedMode.FOLLOWING when rendering DeckColumnType.HomeFeed, which overrode FeedScreen's first-pinned logic entirely. Removed the hardcode so the deck's home column inherits FeedScreen's default. With both fixed, a user who has only Global pinned now opens to Global on launch instead of Following.