Restore Smart Feed or Folder path if possible when restoring an Article. Issue #1241

This commit is contained in:
Maurice Parker
2019-11-15 18:26:52 -06:00
parent d3e5985258
commit 16da609fa9
2 changed files with 63 additions and 5 deletions

View File

@@ -78,6 +78,11 @@ public extension Set where Element == Article {
let articles = self.filter { !$0.status.read }
return Set(articles)
}
func contains(accountID: String, articleID: String) -> Bool {
return contains(where: { $0.accountID == accountID && $0.articleID == articleID})
}
}
public extension Array where Element == Article {
@@ -85,4 +90,5 @@ public extension Array where Element == Article {
func articleIDs() -> [String] {
return map { $0.articleID }
}
}