Add device keys to rageshakes (#2838)

This commit is contained in:
Valere
2024-05-21 10:54:16 +02:00
committed by GitHub
parent 2e35db04db
commit f0ac0a63fb
16 changed files with 198 additions and 39 deletions
@@ -127,6 +127,11 @@ class BugReportService: NSObject, BugReportServiceProtocol {
params.append(.init(key: "device_id", type: .text(value: deviceID)))
}
if let ed25519 = bugReport.ed25519, let curve25519 = bugReport.curve25519 {
let compactKeys = "curve25519:\(curve25519), ed25519:\(ed25519)"
params.append(.init(key: "device_keys", type: .text(value: compactKeys)))
}
params.append(contentsOf: defaultParams)
for label in bugReport.githubLabels {
@@ -21,6 +21,8 @@ import UIKit
struct BugReport: Equatable {
let userID: String?
let deviceID: String?
let ed25519: String?
let curve25519: String?
let text: String
let includeLogs: Bool
let canContact: Bool