Skip to content

Commit

Permalink
Add matchingIssue to sender report and fix description, was missing "…
Browse files Browse the repository at this point in the history
…(sender)"
  • Loading branch information
langleyd committed Mar 21, 2022
1 parent 18ca901 commit 5a5e77f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Riot/Managers/UISIAutoReporter/UISIAutoReporter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,12 @@ extension UISIAutoReportData: Codable {
let deviceId = source.content["device_id"] as? String
let userId = source.content["user_id"] as? String
let senderKey = source.content["sender_key"] as? String
let matchingIssue = source.content["recipient_rageshake"] as? String ?? ""
let matchingIssue = source.content["recipient_rageshake"] as? String

var description = "Auto-reporting decryption error (sender)"
if let matchingIssue = matchingIssue {
description += "\nRecipient rageshake: \(matchingIssue)"
}

let uisiData = UISIAutoReportData(
eventId: eventId,
Expand All @@ -213,7 +218,7 @@ extension UISIAutoReportData: Codable {
).jsonString ?? ""

self.bugReporter.vc_sendBugReport(
description: "Auto-reporting decryption error",
description: description,
sendLogs: true,
sendCrashLog: true,
additionalLabels: [
Expand All @@ -223,7 +228,7 @@ extension UISIAutoReportData: Codable {
],
customFields: [
"auto_uisi": uisiData,
"recipient_rageshake": matchingIssue
"recipient_rageshake": matchingIssue ?? ""
]
)
}
Expand Down

0 comments on commit 5a5e77f

Please sign in to comment.