From 4b3843d450519cc4f03805133a195b2c796e0728 Mon Sep 17 00:00:00 2001 From: Jeremiah K <17190268+jeremiah-k@users.noreply.github.com> Date: Thu, 8 Jun 2023 22:04:59 -0500 Subject: [PATCH] Getting closer! --- meshtastic_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meshtastic_utils.py b/meshtastic_utils.py index 533565b..afdacaa 100644 --- a/meshtastic_utils.py +++ b/meshtastic_utils.py @@ -6,7 +6,7 @@ from typing import List from config import relay_config from log_utils import get_logger -from db_utils import get_longname +from db_utils import get_longname, get_shortname from plugin_loader import load_plugins matrix_rooms: List[dict] = relay_config["matrix_rooms"] @@ -115,6 +115,7 @@ def on_meshtastic_message(packet, loop=None): ) longname = get_longname(sender) or sender + shortname = get_shortname(sender) or sender meshnet_name = relay_config["meshtastic"]["meshnet_name"] formatted_message = f"[{longname}/{meshnet_name}]: {text}"