fix(ios): restore locationServicesEnabled() guard in currentPermissions

The global Location Services check was inadvertently dropped when
switching to appModel.locationAuthorizationStatus(). Without it the
gateway can advertise location as usable while system-wide Location
Services are off.
This commit is contained in:
Yuto Tokunaga 2026-03-21 14:46:50 +09:00
parent 46faaac4b2
commit c8ab0ae7be
No known key found for this signature in database
GPG Key ID: 58DBC6B878064C8A

View File

@ -895,6 +895,7 @@ final class GatewayConnectionController {
if let appModel = self.appModel {
permissions["location"] = Self.isLocationAuthorized(
status: appModel.locationAuthorizationStatus())
&& CLLocationManager.locationServicesEnabled()
}
permissions["screenRecording"] = RPScreenRecorder.shared().isAvailable