Don't render filtered status fix #431

This commit is contained in:
Thomas Ricouard 2023-01-27 13:38:07 +01:00
parent de4346c47e
commit aff318b0ca
1 changed files with 8 additions and 5 deletions

View File

@ -35,11 +35,14 @@ public struct StatusesListView<Fetcher>: View where Fetcher: StatusesFetcher {
case let .display(statuses, nextPageState): case let .display(statuses, nextPageState):
ForEach(statuses, id: \.viewId) { status in ForEach(statuses, id: \.viewId) { status in
StatusRowView(viewModel: .init(status: status, isCompact: false, isRemote: isRemote)) let viewModel = StatusRowViewModel(status: status, isCompact: false, isRemote: isRemote)
.id(status.id) if viewModel.filter?.filter.filterAction != .hide {
.padding(.horizontal, .layoutPadding) StatusRowView(viewModel: viewModel)
Divider() .id(status.id)
.padding(.vertical, .dividerPadding) .padding(.horizontal, .layoutPadding)
Divider()
.padding(.vertical, .dividerPadding)
}
} }
switch nextPageState { switch nextPageState {