Hide "New Posts" Indicator on Timeline Context Change (IOS-21)

This commit is contained in:
Marcus Kida 2024-07-15 12:56:49 +02:00
parent 085ef54233
commit f03ef0dfc7
No known key found for this signature in database
GPG Key ID: 19FF64E08013CA40
1 changed files with 5 additions and 1 deletions

View File

@ -38,7 +38,11 @@ final class HomeTimelineViewModel: NSObject {
let isOffline = CurrentValueSubject<Bool, Never>(false)
var networkErrorCount = CurrentValueSubject<Int, Never>(0)
var timelineContext: MastodonFeed.Kind.TimelineContext = .home
var timelineContext: MastodonFeed.Kind.TimelineContext = .home {
didSet {
hasNewPosts.send(false)
}
}
weak var tableView: UITableView?
weak var timelineMiddleLoaderTableViewCellDelegate: TimelineMiddleLoaderTableViewCellDelegate?