Retry foreground service start after onboarding grants

This commit is contained in:
callebtc
2026-03-05 00:05:05 +01:00
parent f40f27ddf5
commit 10b94e1545
@@ -674,6 +674,9 @@ class MainActivity : OrientationAwareActivity() {
return@launch
}
// Retry foreground-service startup now that runtime permissions are available.
try { com.bitchat.android.service.MeshForegroundService.start(applicationContext) } catch (_: Exception) { }
// Set up mesh service delegate and start services
meshService.delegate = chatViewModel
meshService.startServices()