mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-22 01:15:54 +03:00
Posthog: flush queue before optin out.
This commit is contained in:
parent
7bef90109d
commit
c8277e2d43
1 changed files with 2 additions and 0 deletions
|
@ -156,6 +156,8 @@ class DefaultVectorAnalytics @Inject constructor(
|
|||
pendingUserProperties = null
|
||||
}
|
||||
false -> {
|
||||
// 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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue