mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-10-05 19:28:25 +00:00
The four families that read one relay-set state off `Account` now carry that set as a `StateFlow` on their key, the way `SearchQueryState` does: `ProfileAppRecommendationsQueryState(outboxRelays, defaultGlobalRelays)`, `ProfileBadgesQueryState(notificationRelays)`, `ConnectedAppsQueryState(homeRelays)` and `ThreadQueryState(defaultRelays)`. Thread also takes the cache: `ThreadFilterAssembler(cache, client)`, and its two sub-assemblers run `ThreadAssembler(cache)`. The home feed moves whole. Its `FilterHomePosts*` dispatchers were already import-clean; `HomeOutboxEventsEoseManager` becomes a `TopNavFeedSubAssembler<HomeQueryState>` whose key carries the new-threads and replies floors plus `enabledHomeFeedTypes`. The Settings › Home toggle stays an unsampled invalidator (still `drop(1)`) via `extraInvalidators`, and the disabled-kinds stripping is unchanged. Same deltas as the other feeds: watchers on the screen scope, follows sampler 500 ms (was 1000 ms). The commented-out alternative sub-assemblers in `HomeFilterAssembler` are dropped. The app keeps one `*Subscription.kt` per feature, building the key from `AccountViewModel`. The algo-feed filter test moves to commons commonTest on `kotlin.test`. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J836W9ZjSUJUQ1d23TpiJo