Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

[IB-1890]: [Telemetry] Do not sent telemetry from users who opted out…

… (before update)
  • Loading branch information
naira-cliqz authored and Daniel Jilg committed Jun 27, 2019
1 parent 346187a commit d60ac245f58eb26a4aedb00561f45f27ca20f312
Showing with 6 additions and 0 deletions.
  1. +6 −0 Cliqz/Services/SettingsPrefs.swift
@@ -237,6 +237,12 @@ class SettingsPrefs {
if let sendUsageDataPref = LocalDataStore.value(forKey: SettingsPrefs.SendUsageData) as? Bool {
return sendUsageDataPref
}
#if CLIQZ
let oldCliqzPrefKey = "sendTelemetry"
if let sendUsageDataPref = LocalDataStore.value(forKey: oldCliqzPrefKey) as? Bool {
return sendUsageDataPref
}
#endif
return defaultValue
}

0 comments on commit d60ac24

Please sign in to comment.