summaryrefslogtreecommitdiff
path: root/Hutch/Views/Inbox
diff options
context:
space:
mode:
Diffstat (limited to 'Hutch/Views/Inbox')
-rw-r--r--Hutch/Views/Inbox/ThreadViewModel.swift5
1 files changed, 1 insertions, 4 deletions
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)
}
}