-
Notifications
You must be signed in to change notification settings - Fork 260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(utd_hook): Report historical expected UTD with new reason #4275
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4275 +/- ##
==========================================
- Coverage 85.05% 85.05% -0.01%
==========================================
Files 276 276
Lines 30371 30382 +11
==========================================
+ Hits 25833 25842 +9
- Misses 4538 4540 +2 ☔ View full report in Codecov by Sentry. |
23fa445
to
31f91d9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few nits, but nothing major now. Thanks!
Please remember to rebase your commits so that there is a sensible history before you merge.
This PR introduces a new variant to `UtdCause` specifically for device-historical messages (`HistoricalMessage`). These messages cannot be decrypted if key storage is inaccessible. Applications can leverage this new variant to provide more informative error messages to users.
6c62de7
to
a0c86d9
Compare
Fixes element-hq/element-meta#2581
Detect and report expected historical UTDs as such. Must be integrated by clients and reported with this code in Analytics.
To determine if an event is device historical (i.e sent before the current login existed) we use an heuristic based on the event
origin_server_ts
and the device creation local timestamp.Signed-off-by: