Skip to content

Commit e8288c5

Browse files
Do proper return on analytics opt out when not an APPCLIP (#2769)
2 parents 0667556 + e398333 commit e8288c5

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
7.83
22
-----
33

4+
7.82.1
5+
-----
6+
- Fix analytics bug [#2769](https://github.com/Automattic/pocket-casts-ios/pull/2769)
7+
48

59
7.82
610
-----

podcasts/AnalyticsHelper.swift

+4-3
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ import PocketCastsUtils
99
class AnalyticsHelper {
1010
/// Whether the user has opted out of analytics or not
1111
static var optedOut: Bool {
12-
#if !APPCLIP
13-
Settings.analyticsOptOut()
14-
#endif
12+
#if APPCLIP
1513
return true
14+
#else
15+
return Settings.analyticsOptOut()
16+
#endif
1617
}
1718

1819
class func openedCategory(categoryId: Int, region: String) {

0 commit comments

Comments
 (0)