DecryptionTracker: Permanent vs Temporary UTD

This commit is contained in:
Valere
2024-03-29 18:14:15 +01:00
parent d045a32b74
commit d83c01e1dc
5 changed files with 235 additions and 31 deletions
@@ -44,6 +44,9 @@ import AnalyticsEvents
/// Additional context of failure
let context: String
/// UTDs can be permanent or temporary. If temporary, this field will contain the time it took to decrypt the message in milliseconds. If permanent should be nil
var timeToDecrypt: TimeInterval?
init(failedEventId: String, reason: DecryptionFailureReason, context: String, ts: TimeInterval) {
self.failedEventId = failedEventId
self.reason = reason