mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 19:44:05 +00:00
Add device keys to rageshakes (#2838)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -803,6 +803,16 @@ class ClientProxy: ClientProxyProtocol {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - Encryption
|
||||
|
||||
func ed25519Base64() async -> String? {
|
||||
await client.encryption().ed25519Key()
|
||||
}
|
||||
|
||||
func curve25519Base64() async -> String? {
|
||||
await client.encryption().curve25519Key()
|
||||
}
|
||||
}
|
||||
|
||||
extension ClientProxy: MediaLoaderProtocol {
|
||||
|
||||
@@ -174,4 +174,9 @@ protocol ClientProxyProtocol: AnyObject, MediaLoaderProtocol {
|
||||
func recentlyVisitedRooms() async -> Result<[String], ClientProxyError>
|
||||
|
||||
func recentConversationCounterparts() async -> [UserProfileProxy]
|
||||
|
||||
// MARK: - Encryption Info
|
||||
|
||||
func ed25519Base64() async -> String?
|
||||
func curve25519Base64() async -> String?
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user