Don't check the report URL's contents before clearing the lastCrashEventID.

If we reached it this far, the server has indicated that the submission was successful.
This commit is contained in:
Doug
2025-06-18 12:38:00 +01:00
committed by Doug
parent 7c31220337
commit d22761a25a

View File

@@ -140,9 +140,7 @@ class BugReportService: NSObject, BugReportServiceProtocol {
decoder.keyDecodingStrategy = .convertFromSnakeCase
let uploadResponse = try decoder.decode(SubmitBugReportResponse.self, from: data)
if !(uploadResponse.reportUrl?.isEmpty ?? false) {
lastCrashEventID = nil
}
lastCrashEventID = nil
MXLog.info("Feedback submitted.")