feat: reset to our decryption failure tracking

This commit is contained in:
JanNiklas Grabowski
2024-08-19 16:16:06 +02:00
parent c652fb9089
commit c3155b9f2b
2 changed files with 2 additions and 3 deletions

View File

@@ -66,13 +66,12 @@ import AnalyticsEvents
/// As for now the ios App only reports UTDs visible to user (error are reported from EventFormatter
var wasVisibleToUser: Bool = true
init(failedEventId: String, reason: DecryptionFailureReason, context: String, errorCode: NSInteger, deviceCount: NSInteger, unspecifiedErrorMessage: String?, ts: TimeInterval) {
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
self.ts = ts
}
}

View File

@@ -344,7 +344,7 @@ static NSString *const kEventFormatterTimeFormat = @"HH:mm";
// Track e2e failures
dispatch_async(dispatch_get_main_queue(), ^{
[[BWIAnalyticsHelper shared] getRoomDeviceCountWithRoom:[self->mxSession roomWithRoomId:roomState.roomId] completion:^(NSInteger deviceCount) {
[[DecryptionFailureTracker sharedInstance] reportUnableToDecryptErrorForEvent:event withRoomState:roomState mySession:self->mxSession];
[[DecryptionFailureTracker sharedInstance] reportUnableToDecryptErrorForEvent:event withRoomState:roomState myUser:self->mxSession.myUser.userId roomDeviceCount:deviceCount];
}];
});
}