mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-23 01:52:44 +02:00
MESSENGER-4956 matomo add decryption error information
This commit is contained in:
@@ -47,12 +47,15 @@ import AnalyticsEvents
|
||||
let errorCode: NSInteger
|
||||
// bwi: #4821 RoomDevicesCount
|
||||
let deviceCount: NSInteger
|
||||
// bwi: #4956 add decryption error information
|
||||
let unspecifiedErrorMessage: String?
|
||||
|
||||
init(failedEventId: String, reason: DecryptionFailureReason, context: String, errorCode: NSInteger, deviceCount: NSInteger) {
|
||||
init(failedEventId: String, reason: DecryptionFailureReason, context: String, errorCode: NSInteger, deviceCount: NSInteger, unspecifiedErrorMessage: String?) {
|
||||
self.failedEventId = failedEventId
|
||||
self.reason = reason
|
||||
self.context = context
|
||||
self.errorCode = errorCode
|
||||
self.deviceCount = deviceCount
|
||||
self.unspecifiedErrorMessage = unspecifiedErrorMessage
|
||||
}
|
||||
}
|
||||
|
||||
@@ -118,7 +118,8 @@ NSString *const kDecryptionFailureTrackerAnalyticsCategory = @"e2e.failure";
|
||||
reason:reason
|
||||
context:context
|
||||
errorCode:event.decryptionError.code
|
||||
deviceCount:deviceCount];
|
||||
deviceCount:deviceCount
|
||||
unspecifiedErrorMessage:event.decryptionError.localizedDescription];
|
||||
}
|
||||
|
||||
- (void)dispatch
|
||||
@@ -160,7 +161,7 @@ NSString *const kDecryptionFailureTrackerAnalyticsCategory = @"e2e.failure";
|
||||
for (DecryptionFailure *failure in failuresToTrack)
|
||||
{
|
||||
if (failure.reason == DecryptionFailureReasonUnspecified) {
|
||||
[BWIAnalytics.sharedTracker trackE2EEErrorWithDimension:failure.errorCode deviceCount:[BWIAnalyticsHelper dimensionForDeviceCount: failure.deviceCount]];
|
||||
[BWIAnalytics.sharedTracker trackE2EEErrorWithDimension:failure.errorCode deviceCount:[BWIAnalyticsHelper dimensionForDeviceCount: failure.deviceCount] unspecifiedErrorMessage:failure.unspecifiedErrorMessage];
|
||||
} else {
|
||||
failuresCounts[@(failure.reason)] = @(failuresCounts[@(failure.reason)].unsignedIntegerValue + 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user