From 752c884eaaf2c4a3aa4efff7fc2f62819a28fa15 Mon Sep 17 00:00:00 2001 From: Valere Date: Tue, 2 Apr 2024 11:44:05 +0200 Subject: [PATCH] Analytics | if no property use null instead of empty map --- .../app/features/analytics/impl/DefaultVectorAnalytics.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vector/src/main/java/im/vector/app/features/analytics/impl/DefaultVectorAnalytics.kt b/vector/src/main/java/im/vector/app/features/analytics/impl/DefaultVectorAnalytics.kt index d4f34ffaf2..acc6ebf51e 100644 --- a/vector/src/main/java/im/vector/app/features/analytics/impl/DefaultVectorAnalytics.kt +++ b/vector/src/main/java/im/vector/app/features/analytics/impl/DefaultVectorAnalytics.kt @@ -177,7 +177,7 @@ class DefaultVectorAnalytics @Inject constructor( ?.takeIf { userConsent == true } ?.capture( event.getName(), - event.getProperties().orEmpty().toPostHogProperties() + event.getProperties()?.toPostHogProperties() ) }