Explorar o código

a location's accuracy is allowed to be 0, only negative values are invalid

cyberta %!s(int64=5) %!d(string=hai) anos
pai
achega
d80c6e30a5
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      deltachat-ios/Helper/LocationManager.swift

+ 1 - 2
deltachat-ios/Helper/LocationManager.swift

@@ -112,8 +112,7 @@ class LocationManager: NSObject, CLLocationManagerDelegate {
     }
 
     func hasValidAccuracy(newLocation: CLLocation) -> Bool {
-//        logger.debug("LOCATION: hasValidAccuracy: \(newLocation.horizontalAccuracy > 0)")
-        return newLocation.horizontalAccuracy > 0
+        return newLocation.horizontalAccuracy >= 0
     }
 
     func isSignificantlyMoreAccurate(newLocation: CLLocation, lastLocation: CLLocation) -> Bool {