From 0c3f1bd2d646c48373aa96fd4a3b8faa3a349c32 Mon Sep 17 00:00:00 2001 From: Garth Vander Houwen Date: Sun, 26 Oct 2025 18:41:34 -0700 Subject: [PATCH] Update Meshtastic/Extensions/CoreData/ChannelEntityExtension.swift Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- Meshtastic/Extensions/CoreData/ChannelEntityExtension.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Meshtastic/Extensions/CoreData/ChannelEntityExtension.swift b/Meshtastic/Extensions/CoreData/ChannelEntityExtension.swift index 3d0fc0f1..5916567c 100644 --- a/Meshtastic/Extensions/CoreData/ChannelEntityExtension.swift +++ b/Meshtastic/Extensions/CoreData/ChannelEntityExtension.swift @@ -39,7 +39,7 @@ extension ChannelEntity { func unreadMessages(context: NSManagedObjectContext) -> Int { let fetchRequest = messageFetchRequest - fetchRequest.sortDescriptors = [] // sort is irrelvant. + fetchRequest.sortDescriptors = [] // sort is irrelevant. fetchRequest.predicate = NSCompoundPredicate(andPredicateWithSubpredicates: [fetchRequest.predicate!, NSPredicate(format: "read == false")]) return (try? context.count(for: fetchRequest)) ?? 0