mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
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:
@@ -140,9 +140,7 @@ class BugReportService: NSObject, BugReportServiceProtocol {
|
|||||||
decoder.keyDecodingStrategy = .convertFromSnakeCase
|
decoder.keyDecodingStrategy = .convertFromSnakeCase
|
||||||
let uploadResponse = try decoder.decode(SubmitBugReportResponse.self, from: data)
|
let uploadResponse = try decoder.decode(SubmitBugReportResponse.self, from: data)
|
||||||
|
|
||||||
if !(uploadResponse.reportUrl?.isEmpty ?? false) {
|
lastCrashEventID = nil
|
||||||
lastCrashEventID = nil
|
|
||||||
}
|
|
||||||
|
|
||||||
MXLog.info("Feedback submitted.")
|
MXLog.info("Feedback submitted.")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user