mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-16 02:05:06 +08:00
Fix crash when re-enabling analytics.
This commit is contained in:
parent
95b30bb8e9
commit
2830459b6a
@ -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 New Issue
Block a user