From a6211a1da349a381e160df0ebdf9d47860462b97 Mon Sep 17 00:00:00 2001 From: bmarty Date: Mon, 6 Mar 2023 00:03:43 +0000 Subject: [PATCH] Sync analytics plan --- .../app/features/analytics/plan/Error.kt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/vector/src/main/java/im/vector/app/features/analytics/plan/Error.kt b/vector/src/main/java/im/vector/app/features/analytics/plan/Error.kt index 5c082f530e..386c090848 100644 --- a/vector/src/main/java/im/vector/app/features/analytics/plan/Error.kt +++ b/vector/src/main/java/im/vector/app/features/analytics/plan/Error.kt @@ -29,6 +29,10 @@ data class Error( * Context - client defined, can be used for debugging. */ val context: String? = null, + /** + * Which crypto module is the client currently using. + */ + val cryptoModule: CryptoModule? = null, val domain: Domain, val name: Name, ) : VectorAnalyticsEvent { @@ -52,11 +56,25 @@ data class Error( VoipUserMediaFailed, } + enum class CryptoModule { + + /** + * Native / legacy crypto module specific to each platform. + */ + Native, + + /** + * Shared / cross-platform crypto module written in Rust. + */ + Rust, + } + override fun getName() = "Error" override fun getProperties(): Map? { return mutableMapOf().apply { context?.let { put("context", it) } + cryptoModule?.let { put("cryptoModule", it.name) } put("domain", domain.name) put("name", name.name) }.takeIf { it.isNotEmpty() }