Fix home pull activity filtering
This commit is contained in:
@@ -303,7 +303,6 @@ final class HomeViewController: RefreshingTableViewController {
|
||||
case all
|
||||
case issues
|
||||
case pulls
|
||||
case milestones
|
||||
|
||||
func includes(_ row: ActivityRow) -> Bool {
|
||||
switch self {
|
||||
@@ -313,12 +312,6 @@ final class HomeViewController: RefreshingTableViewController {
|
||||
return row.icon.contains("issue")
|
||||
case .pulls:
|
||||
return row.icon.contains("pull")
|
||||
case .milestones:
|
||||
// ponytail: Gitea has no milestone event type; use related issue text until it does.
|
||||
return row.icon.contains("milestone")
|
||||
|| row.icon.contains("issue")
|
||||
&& (row.title.localizedCaseInsensitiveContains("milestone")
|
||||
|| row.detail.localizedCaseInsensitiveContains("milestone"))
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -484,7 +477,6 @@ final class HeatmapView: UIView {
|
||||
("clock", "clock.fill", "All activity"),
|
||||
("exclamationmark.circle", "exclamationmark.circle.fill", "Issues"),
|
||||
("arrow.triangle.pull", "arrow.triangle.pull", "Pull requests"),
|
||||
("flag", "flag.fill", "Milestones"),
|
||||
]
|
||||
for (index, item) in filterItems.enumerated() {
|
||||
let button = UIButton(type: .custom, primaryAction: UIAction { action in
|
||||
|
||||
Reference in New Issue
Block a user