Telemetry | Add more properties to posthog utd errors

This commit is contained in:
Valere
2024-04-05 09:53:07 +02:00
parent 047be10692
commit e216c1bbf5
4 changed files with 102 additions and 15 deletions
@@ -52,6 +52,14 @@ import AnalyticsEvents
var eventLocalAgeMillis: Int?
/// Is the current user on matrix org
var isMatrixOrg: Bool?
/// Are the sender and recipient on the same homeserver
var isFederated: Bool?
/// 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, ts: TimeInterval) {
self.failedEventId = failedEventId
self.reason = reason