mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-29 12:46:58 +02:00
MESSENGER-4956 matomo add decryption error information
This commit is contained in:
@@ -274,9 +274,13 @@ extension BWIAnalytics : MXAnalyticsDelegate {
|
||||
// dont track NV specific logs
|
||||
}
|
||||
|
||||
func trackE2EEErrorWithDimension(_ errorCode: Int, deviceCount: String) {
|
||||
func trackE2EEErrorWithDimension(_ errorCode: Int, deviceCount: String, unspecifiedErrorMessage: String?) {
|
||||
if let errorCode = AnalyticsE2EEErrorCode(rawValue: errorCode) {
|
||||
self.trackEventWithDimension(category: "Encryption", action: "ViewMessage", dimension: deviceCount, value: NSNumber(value: 1), name: errorCode.description)
|
||||
var eventName = errorCode.description
|
||||
if let additionalMessage = unspecifiedErrorMessage {
|
||||
eventName.append(contentsOf: ": " + additionalMessage)
|
||||
}
|
||||
self.trackEventWithDimension(category: "Encryption", action: "ViewMessage", dimension: deviceCount, value: NSNumber(value: 1), name: eventName)
|
||||
} else {
|
||||
self.trackEventWithDimension(category: "Encryption", action: "ViewMessage", dimension: deviceCount, value: NSNumber(value: 1), name: "Unknown_Error")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user