matrix-org / matrix-analytics-events

Cross-platform definitions of analytics events raised by matrix SDKs
Apache License 2.0
8 stars 7 forks source link

Add a new crypto session state event #103

Closed BillCarsonFr closed 4 months ago

BillCarsonFr commented 4 months ago

Add a new CryptoSessionState to get information on Verification And recovery state.

The same propeties are also added as UserProperties. Adding as UserProperties will allow to have the current state of a user, as the new values will overwrite the previous one (posthog $set -will replace any value that may have been set on a person for a specific property-)

We also keep an event CryptoSessionState that records the historical values (could allow to know the average time to get from unverified to verified, or to check when the state is reverted).

For the UserProperty to work as expected, different devices should not report to the same posthog User. So it depends how platforms are identifyign users