Don't render filtered status fix #431
This commit is contained in:
parent
de4346c47e
commit
aff318b0ca
|
@ -35,12 +35,15 @@ 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)
|
||||||
|
if viewModel.filter?.filter.filterAction != .hide {
|
||||||
|
StatusRowView(viewModel: viewModel)
|
||||||
.id(status.id)
|
.id(status.id)
|
||||||
.padding(.horizontal, .layoutPadding)
|
.padding(.horizontal, .layoutPadding)
|
||||||
Divider()
|
Divider()
|
||||||
.padding(.vertical, .dividerPadding)
|
.padding(.vertical, .dividerPadding)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
switch nextPageState {
|
switch nextPageState {
|
||||||
case .hasNextPage:
|
case .hasNextPage:
|
||||||
|
|
Loading…
Reference in New Issue