UnigramDev/Unigram/location-access-guard • ec3172b • 1 files, +12/-1
Guard the geolocation access request in SendLocationPopup
Geolocator.RequestAccessAsync is a remote procedure call and throws when the
Windows Geolocation Service (lfsvc) is disabled, which privacy/debloat scripts
routinely do. In FindLocation the call was the only one not wrapped, so the
throw escaped an async void method and reached the unhandled exception handler.
Treat a failed request as "not allowed": the popup keeps the map shimmer, the
same as an explicit denial.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
#unigram
Post #20623
54