Analytics: explicitly optOut, maybe useful for stats captured automatically.

This commit is contained in:
Benoit Marty 2021-11-24 16:05:06 +01:00 committed by Benoit Marty
parent 622483cf9f
commit 805fcb6bd3
1 changed files with 1 additions and 0 deletions

View File

@ -114,6 +114,7 @@ class DefaultVectorAnalytics @Inject constructor(
getUserConsent()
.onEach { consent ->
userConsent = consent
posthog?.optOut(!consent)
}
.launchIn(GlobalScope)
}