mirror of
https://github.com/element-hq/element-android
synced 2024-11-26 19:35:42 +03:00
Fix crash when re-enabling analytics.
This commit is contained in:
parent
95b30bb8e9
commit
2830459b6a
1 changed files with 1 additions and 0 deletions
|
@ -164,6 +164,7 @@ class DefaultVectorAnalytics @Inject constructor(
|
|||
// When opting out, ensure that the queue is flushed first, or it will be flushed later (after user has revoked consent)
|
||||
posthog?.flush()
|
||||
posthog?.optOut(true)
|
||||
posthog?.shutdown()
|
||||
posthog = null
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue