Contact me added in Bug Report Screen (#1307)

* contact me added

* fixing tests
This commit is contained in:
Mauro
2023-07-12 10:20:51 +02:00
committed by GitHub
parent 98e7489aaf
commit c573892954
26 changed files with 59 additions and 38 deletions
@@ -103,7 +103,8 @@ class BugReportService: NSObject, BugReportServiceProtocol {
progressListener: CurrentValueSubject<Double, Never>) async -> Result<SubmitBugReportResponse, BugReportServiceError> {
var params = [
MultipartFormData(key: "user_id", type: .text(value: bugReport.userID)),
MultipartFormData(key: "text", type: .text(value: bugReport.text))
MultipartFormData(key: "text", type: .text(value: bugReport.text)),
MultipartFormData(key: "can_contact", type: .text(value: "\(bugReport.canContact)"))
]
if let deviceID = bugReport.deviceID {