Skip to content

Commit

Permalink
Review: use optout for isrunning
Browse files Browse the repository at this point in the history
  • Loading branch information
BillCarsonFr committed May 31, 2024
1 parent 67efa74 commit b664de4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Riot/Modules/Analytics/PostHogAnalyticsClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class PostHogAnalyticsClient: AnalyticsClientProtocol {

static let shared = PostHogAnalyticsClient()

var isRunning: Bool { postHog != nil }
var isRunning: Bool { postHog != nil && !postHog!.isOptOut() }

func start() {
// Only start if analytics have been configured in BuildSettings
Expand Down

0 comments on commit b664de4

Please sign in to comment.