feat: disable Wi‑Fi Aware by default (#712)

Co-authored-by: CC <cc@ggg.local>
This commit is contained in:
callebtc
2026-06-16 12:45:23 -05:00
committed by GitHub
co-authored by CC
parent 3a983c5767
commit ae6641270a
4 changed files with 6 additions and 6 deletions
@@ -26,9 +26,9 @@ class PermissionManager(private val context: Context) {
private fun shouldRequireWifiAwarePermission(): Boolean {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU) return false
val enabled = try {
com.bitchat.android.ui.debug.DebugPreferenceManager.getWifiAwareEnabled(true)
com.bitchat.android.ui.debug.DebugPreferenceManager.getWifiAwareEnabled(false)
} catch (_: Exception) {
true
false
}
if (!enabled) return false