fixes build error

This commit is contained in:
Stuart Breckenridge 2021-03-24 20:06:48 +08:00
parent 9c761c80df
commit 7f702abc8a
No known key found for this signature in database
GPG Key ID: ED2F112EEA9EF8A5
2 changed files with 4 additions and 4 deletions

View File

@ -53,9 +53,9 @@ public enum AccountType: Int, Codable {
}
public enum FetchType {
case starred(Int?)
case unread(Int?)
case today(Int?)
case starred(_: Int? = nil)
case unread(_: Int? = nil)
case today(_: Int? = nil)
case folder(Folder, Bool)
case webFeed(WebFeed)
case articleIDs(Set<String>)

View File

@ -1235,7 +1235,7 @@ private extension MasterFeedViewController {
let title = NSString.localizedStringWithFormat(localizedMenuText as NSString, account.nameForDisplay) as String
let action = UIAction(title: title, image: AppAssets.markAllAsReadImage) { [weak self] action in
MarkAsReadAlertController.confirm(self, coordinator: self?.coordinator, confirmTitle: title, sourceType: contentView) { [weak self] in
if let articles = try? account.fetchArticles(.unread) {
if let articles = try? account.fetchArticles(.unread()) {
self?.coordinator.markAllAsRead(Array(articles))
}
}