Skip to content

Commit cf93e33

Browse files
committed
Support new properties in posthog UTD reports
Add a few new properties to the UTD reports we send to Posthog.
1 parent 4e70c7e commit cf93e33

File tree

1 file changed

+4
-0
lines changed
  • libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/analytics

1 file changed

+4
-0
lines changed

libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/analytics/UtdTracker.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ class UtdTracker(
3939
timeToDecryptMillis = info.timeToDecryptMs?.toInt() ?: -1,
4040
domain = Error.Domain.E2EE,
4141
name = name,
42+
eventLocalAgeMillis = info.eventLocalAgeMillis.toInt(),
43+
userTrustsOwnIdentity = info.userTrustsOwnIdentity,
44+
isFederated = info.ownHomeserver != info.senderHomeserver,
45+
isMatrixDotOrg = info.ownHomeserver == "matrix.org",
4246
)
4347
analyticsService.capture(event)
4448
}

0 commit comments

Comments
 (0)