2
2
mirror of https://github.com/mastodon/mastodon-ios synced 2025-04-11 22:58:02 +02:00

Refresh the home timeline when the following list changes

This resolves the issue where following people from the “Find people to follow” prompt on first login did not refresh the home timeline view.

Fixes iOS-329
This commit is contained in:
shannon 2024-11-22 13:00:01 -05:00
parent 8c58712b93
commit 368de0aee0

View File

@ -100,6 +100,10 @@ final class HomeTimelineViewModel: NSObject {
MastodonFeed.fromStatus($0, kind: .home)
}) ?? []
authenticationBox.inMemoryCache.$followingUserIds.sink { [weak self] _ in
self?.homeTimelineNeedRefresh.send()
}.store(in: &disposeBag)
homeTimelineNeedRefresh
.sink { [weak self] _ in
self?.loadLatestStateMachine.enter(LoadLatestState.Loading.self)