Support new properties in posthog UTD reports

Add a few new properties to the UTD reports we send to Posthog.
This commit is contained in:
Richard van der Hoff
2024-12-11 17:33:16 +00:00
parent c5e605a539
commit e8d373f6ae

View File

@@ -39,6 +39,10 @@ class UtdTracker(
timeToDecryptMillis = info.timeToDecryptMs?.toInt() ?: -1,
domain = Error.Domain.E2EE,
name = name,
eventLocalAgeMillis = info.eventLocalAgeMillis.toInt(),
userTrustsOwnIdentity = info.userTrustsOwnIdentity,
isFederated = info.ownHomeserver != info.senderHomeserver,
isMatrixDotOrg = info.ownHomeserver == "matrix.org",
)
analyticsService.capture(event)
}