Improve crypto error content.
This commit is contained in:
parent
a61b7c91f4
commit
cf36ce3cec
1 changed files with 3 additions and 1 deletions
|
|
@ -28,10 +28,12 @@ class UtdTracker @Inject constructor(
|
||||||
) : UnableToDecryptDelegate {
|
) : UnableToDecryptDelegate {
|
||||||
override fun onUtd(info: UnableToDecryptInfo) {
|
override fun onUtd(info: UnableToDecryptInfo) {
|
||||||
Timber.d("onUtd for event ${info.eventId}, timeToDecryptMs: ${info.timeToDecryptMs}")
|
Timber.d("onUtd for event ${info.eventId}, timeToDecryptMs: ${info.timeToDecryptMs}")
|
||||||
// TODO info will contain more information in the future, so that the app can report more precise data to the analytics.
|
|
||||||
val event = Error(
|
val event = Error(
|
||||||
context = null,
|
context = null,
|
||||||
|
// Keep cryptoModule for compatibility.
|
||||||
cryptoModule = Error.CryptoModule.Rust,
|
cryptoModule = Error.CryptoModule.Rust,
|
||||||
|
cryptoSDK = Error.CryptoSDK.Rust,
|
||||||
|
timeToDecryptMillis = info.timeToDecryptMs?.toInt() ?: -1,
|
||||||
domain = Error.Domain.E2EE,
|
domain = Error.Domain.E2EE,
|
||||||
// TODO get a more specific error name from `info`
|
// TODO get a more specific error name from `info`
|
||||||
name = Error.Name.OlmKeysNotSentError,
|
name = Error.Name.OlmKeysNotSentError,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue