mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 16:42:44 +02:00
Disable the default analytics configurations for forks. (#5688)
* Disable the default analytics configurations for forks. * Check the analytics configuration instead of the PostHog Config.
This commit is contained in:
@@ -50,8 +50,8 @@ import AnalyticsEvents
|
||||
|
||||
/// Whether to show the user the analytics opt in prompt.
|
||||
var shouldShowAnalyticsPrompt: Bool {
|
||||
// Only show the prompt once, and when analytics are configured in BuildSettings.
|
||||
!RiotSettings.shared.hasSeenAnalyticsPrompt && PHGPostHogConfiguration.standard != nil
|
||||
// Only show the prompt once, and when analytics are enabled in BuildSettings.
|
||||
!RiotSettings.shared.hasSeenAnalyticsPrompt && BuildSettings.analyticsConfiguration.isEnabled
|
||||
}
|
||||
|
||||
/// Indicates whether the user previously accepted Matomo analytics and should be shown the upgrade prompt.
|
||||
|
||||
Reference in New Issue
Block a user