From e7e1275ee5d6ab004733550063c10e97d7122f82 Mon Sep 17 00:00:00 2001 From: Florent de Lamotte Date: Sat, 8 Nov 2025 23:32:40 +0100 Subject: [PATCH] fix issue with scope --- pyproject.toml | 2 +- src/meshcore_cli/meshcore_cli.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 8a63d5e..151432f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "meshcore-cli" -version = "1.2.10" +version = "1.2.11" authors = [ { name="Florent de Lamotte", email="florent@frizoncorrea.fr" }, ] diff --git a/src/meshcore_cli/meshcore_cli.py b/src/meshcore_cli/meshcore_cli.py index 916a5c0..0e722bd 100644 --- a/src/meshcore_cli/meshcore_cli.py +++ b/src/meshcore_cli/meshcore_cli.py @@ -33,7 +33,7 @@ import re from meshcore import MeshCore, EventType, logger # Version -VERSION = "v1.2.10" +VERSION = "v1.2.11" # default ble address is stored in a config file MCCLI_CONFIG_DIR = str(Path.home()) + "/.config/meshcore/" @@ -720,6 +720,7 @@ Line starting with \"$\" or \".\" will issue a meshcli command. prev_contact = None scope = await set_scope(mc, "*") + prev_scope = scope await get_contacts(mc, anim=True) await get_channels(mc, anim=True) @@ -937,7 +938,7 @@ Line starting with \"$\" or \".\" will issue a meshcli command. nc["adv_name"] = mc.channels[dest]["channel_name"] elif dest == ".." : # previous recipient nc = prev_contact - if dest_scope is None and not scope is None: + if dest_scope is None and not prev_scope is None: dest_scope = prev_scope elif dest == "~" or dest == "/" or dest == mc.self_info['name']: nc = None