From 380fb866d090c5f13b2ad3f88f1fe23c4ade4801 Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Mon, 20 Apr 2026 13:15:04 -0500 Subject: fix: collapse work inbox messages into thread summaries --- Hutch/Views/Inbox/InboxThreadUtilities.swift | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Hutch/Views/Inbox/InboxThreadUtilities.swift (limited to 'Hutch/Views/Inbox/InboxThreadUtilities.swift') diff --git a/Hutch/Views/Inbox/InboxThreadUtilities.swift b/Hutch/Views/Inbox/InboxThreadUtilities.swift new file mode 100644 index 0000000..1dd88a3 --- /dev/null +++ b/Hutch/Views/Inbox/InboxThreadUtilities.swift @@ -0,0 +1,11 @@ +import Foundation + +enum InboxThreadUtilities { + nonisolated static func deriveRepositoryName(from listName: String) -> String? { + let separators = ["-devel", "-patches", "-dev", ".patches"] + for separator in separators where listName.hasSuffix(separator) { + return String(listName.dropLast(separator.count)) + } + return nil + } +} -- cgit v1.2.3