mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:05:28 +00:00
Distinguish between indexable and non-indexable extra data
This commit is contained in:
committed by
Jorge Martin Espinosa
parent
fa8d7b73c7
commit
fe9224b807
+8
-2
@@ -149,9 +149,15 @@ class DefaultAnalyticsService(
|
||||
}
|
||||
}
|
||||
|
||||
override fun addUserData(key: String, value: String) {
|
||||
override fun addExtraData(key: String, value: String) {
|
||||
if (userConsent.get()) {
|
||||
analyticsProviders.onEach { it.addUserData(key, value) }
|
||||
analyticsProviders.onEach { it.addExtraData(key, value) }
|
||||
}
|
||||
}
|
||||
|
||||
override fun addIndexableData(key: String, value: String) {
|
||||
if (userConsent.get()) {
|
||||
analyticsProviders.onEach { it.addIndexableData(key, value) }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user