Change how statuses are processed

This commit is contained in:
Maurice Parker 2020-05-02 14:54:09 -05:00
parent 9d7d09a2a2
commit 19b01679f0
1 changed files with 0 additions and 13 deletions

View File

@ -28,9 +28,6 @@ struct CloudKitArticleStatusUpdate {
}
if let article = article {
if statuses.contains(where: { $0.key == .new }) {
return .all
}
if article.status.read == false || article.status.starred == true {
return .all
}
@ -43,11 +40,6 @@ struct CloudKitArticleStatusUpdate {
if let article = article {
return article.status.read
}
if let status = statuses.first(where: { $0.key == .read }) {
return status.flag
}
return true
}
@ -55,11 +47,6 @@ struct CloudKitArticleStatusUpdate {
if let article = article {
return article.status.starred
}
if let status = statuses.first(where: { $0.key == .starred }) {
return status.flag
}
return false
}