From 4facf1054b88dc2ccaa45a52f27fdfd0a66e5288 Mon Sep 17 00:00:00 2001 From: Garth Vander Houwen Date: Sun, 26 Oct 2025 18:41:13 -0700 Subject: [PATCH] Update Meshtastic/Extensions/CoreData/ChannelEntityExtension.swift Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- Meshtastic/Extensions/CoreData/ChannelEntityExtension.swift | 1 - 1 file changed, 1 deletion(-) diff --git a/Meshtastic/Extensions/CoreData/ChannelEntityExtension.swift b/Meshtastic/Extensions/CoreData/ChannelEntityExtension.swift index 8d7962b4..3d0fc0f1 100644 --- a/Meshtastic/Extensions/CoreData/ChannelEntityExtension.swift +++ b/Meshtastic/Extensions/CoreData/ChannelEntityExtension.swift @@ -38,7 +38,6 @@ extension ChannelEntity { } func unreadMessages(context: NSManagedObjectContext) -> Int { - let context = PersistenceController.shared.container.viewContext let fetchRequest = messageFetchRequest fetchRequest.sortDescriptors = [] // sort is irrelvant. fetchRequest.predicate = NSCompoundPredicate(andPredicateWithSubpredicates: [fetchRequest.predicate!, NSPredicate(format: "read == false")])