From 5e63048ab6a741ae947f7fe42efcb5206a3f3963 Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Mon, 13 Apr 2026 14:20:27 -0500 Subject: fix: mercurial parity and graphql handling - implements consistent UX between repo types - ensures centralized services and routes are used between repo types - graphql error handling is centralized - error messages are consistent Implements: https://todo.sr.ht/~ccleberg/hutch/58 Implements: https://todo.sr.ht/~ccleberg/hutch/59 --- Hutch/Views/Inbox/ThreadViewModel.swift | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'Hutch/Views/Inbox/ThreadViewModel.swift') diff --git a/Hutch/Views/Inbox/ThreadViewModel.swift b/Hutch/Views/Inbox/ThreadViewModel.swift index 1c3705b..850b83c 100644 --- a/Hutch/Views/Inbox/ThreadViewModel.swift +++ b/Hutch/Views/Inbox/ThreadViewModel.swift @@ -693,9 +693,6 @@ final class ThreadViewModel { } private static func isRecoverableNoRows(_ error: Error) -> Bool { - guard case let SRHTError.graphQLErrors(errors) = error else { - return false - } - return errors.allSatisfy { $0.message.localizedCaseInsensitiveContains("no rows in result set") } + error.matchesGraphQLErrorClassification(.noRows) } } -- cgit v1.2.3