Fix a couple concurrency warnings.

This commit is contained in:
Brent Simmons 2024-04-01 22:50:03 -07:00
parent 6e8eecb6a9
commit 9d6d15bd93
2 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ public extension Notification.Name {
static let StatusesDidChange = Notification.Name(rawValue: "StatusesDidChange")
}
public enum AccountType: Int, Codable {
public enum AccountType: Int, Codable, Sendable {
// Raw values should not change since theyre stored on disk.
case onMyMac = 1
case cloudKit = 2

View File

@ -19,12 +19,12 @@ enum ReadFilterType {
protocol SidebarItem: SidebarItemIdentifiable, ArticleFetcher, DisplayNameProvider, UnreadCountProvider {
var account: Account? { get }
var defaultReadFilterType: ReadFilterType { get }
@MainActor var defaultReadFilterType: ReadFilterType { get }
}
extension SidebarItem {
func readFiltered(readFilterEnabledTable: [SidebarItemIdentifier: Bool]) -> Bool {
@MainActor func readFiltered(readFilterEnabledTable: [SidebarItemIdentifier: Bool]) -> Bool {
guard defaultReadFilterType != .alwaysRead else {
return true
}