From d64cd6baac9d816b92712e15c404615577af4b10 Mon Sep 17 00:00:00 2001 From: Ivan Date: Sat, 9 May 2026 22:50:11 -0500 Subject: [PATCH] chore(codebase): format --- FAQ.md | 1 - meshchatx/android_push_bridge.py | 1 + meshchatx/meshchat.py | 7 ++++++- tests/backend/test_android_rnode.py | 1 - 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/FAQ.md b/FAQ.md index 2682cc2..fc035eb 100644 --- a/FAQ.md +++ b/FAQ.md @@ -33,4 +33,3 @@ Electron has to be kept up-to-date with a stable release cycle in order to get a **Can you make it so MeshChatX uses system RNS/LXMF packages?** The Python wheels can use system RNS/LXMF, and you can update them easily. With Docker, you can grab the Dockerfile, update it, and build manually. You can also build from source. As for Electron builds, there is not much that can be done right now, but I will keep exploring options. - diff --git a/meshchatx/android_push_bridge.py b/meshchatx/android_push_bridge.py index d825977..b3904f2 100644 --- a/meshchatx/android_push_bridge.py +++ b/meshchatx/android_push_bridge.py @@ -30,6 +30,7 @@ def _get_android_external_files_dir() -> str | None: return None try: from com.chaquo.python import Python + context = Python.getPlatform().getApplication() external = context.getExternalFilesDir(None) if external is not None: diff --git a/meshchatx/meshchat.py b/meshchatx/meshchat.py index e8e94cc..b9f1f04 100644 --- a/meshchatx/meshchat.py +++ b/meshchatx/meshchat.py @@ -724,7 +724,12 @@ class ReticulumMeshChat: continue iface_type = iface.get("type", "") if isinstance(iface_type, str) and iface_type.startswith("RNode"): - if str(iface.get("interface_enabled", "")).lower() in ("true", "yes", "1", "on"): + if str(iface.get("interface_enabled", "")).lower() in ( + "true", + "yes", + "1", + "on", + ): iface["interface_enabled"] = "false" modified = True if modified: diff --git a/tests/backend/test_android_rnode.py b/tests/backend/test_android_rnode.py index 21be138..05f3810 100644 --- a/tests/backend/test_android_rnode.py +++ b/tests/backend/test_android_rnode.py @@ -1,6 +1,5 @@ # SPDX-License-Identifier: 0BSD -import os import pytest