From b25e89dadef76dbea55268fae3b47f23adc0590a Mon Sep 17 00:00:00 2001 From: Mike Date: Fri, 13 Oct 2023 18:40:43 -0700 Subject: [PATCH] Fix alias in the dictionary --- sms.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sms.py b/sms.py index 369693a..e48c69e 100644 --- a/sms.py +++ b/sms.py @@ -327,6 +327,11 @@ def receive_aprs_messages(): if match: recipient = match.group(1) + # Use the reverse alias mapping to check if the sender's phone number has an associated alias + alias = alias_map.get(recipient.lower()) + if alias: + recipient = alias + # Update the dictionary with the last message number for the callsign last_message_number[recipient] = from_callsign print ("To #", recipient)