From d22761a25a3919c1ce0fce987f50a2b0e33bbdb3 Mon Sep 17 00:00:00 2001 From: Doug Date: Wed, 18 Jun 2025 12:38:00 +0100 Subject: [PATCH] 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. --- ElementX/Sources/Services/BugReport/BugReportService.swift | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ElementX/Sources/Services/BugReport/BugReportService.swift b/ElementX/Sources/Services/BugReport/BugReportService.swift index d7ce70de7..c1595cefe 100644 --- a/ElementX/Sources/Services/BugReport/BugReportService.swift +++ b/ElementX/Sources/Services/BugReport/BugReportService.swift @@ -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.")