mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 16:42:44 +02:00
DecryptionTracker: Permanent vs Temporary UTD
This commit is contained in:
@@ -215,7 +215,7 @@ import AnalyticsEvents
|
||||
|
||||
@objc
|
||||
protocol E2EAnalytics {
|
||||
func trackE2EEError(_ reason: DecryptionFailureReason, context: String)
|
||||
func trackE2EEError(_ failure: DecryptionFailure)
|
||||
}
|
||||
|
||||
|
||||
@@ -225,21 +225,8 @@ protocol E2EAnalytics {
|
||||
/// - Parameters:
|
||||
/// - reason: The error that occurred.
|
||||
/// - context: Additional context of the error that occured
|
||||
func trackE2EEError(_ reason: DecryptionFailureReason, context: String) {
|
||||
let event = AnalyticsEvent.Error(
|
||||
context: context,
|
||||
cryptoModule: .Rust,
|
||||
cryptoSDK: AnalyticsEvent.Error.CryptoSDK.Rust,
|
||||
domain: .E2EE,
|
||||
// XXX not yet supported.
|
||||
eventLocalAgeMillis: nil,
|
||||
isFederated: nil,
|
||||
isMatrixDotOrg: nil,
|
||||
name: reason.errorName,
|
||||
timeToDecryptMillis: nil,
|
||||
userTrustsOwnIdentity: nil,
|
||||
wasVisibleToUser: nil
|
||||
)
|
||||
func trackE2EEError(_ failure: DecryptionFailure) {
|
||||
let event = failure.toAnalyticsEvent()
|
||||
capture(event: event)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user