This commit is contained in:
pdxlocations
2025-01-12 18:41:42 -08:00
parent d1e1b6320e
commit c5dc867633
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ def on_receive(packet):
message_from_string = ""
for node in globals.interface.nodes.values():
if message_from_id == node['num']:
message_from_string = node["user"]["shortName"] # Get the long name using the node ID
message_from_string = node["user"]["shortName"] + ":" # Get the name using the node ID
break
else:
message_from_string = str(decimal_to_hex(message_from_id)) # If long name not found, use the ID as string
+2 -2
View File
@@ -25,8 +25,8 @@ def send_message(message, destination=BROADCAST_NUM, channel=0):
# Add sent message to the messages dictionary
if globals.channel_list[channel] in globals.all_messages:
globals.all_messages[globals.channel_list[channel]].append((">> Sent: ", message))
globals.all_messages[globals.channel_list[channel]].append((globals.sent_message_prefix + " ", message))
else:
globals.all_messages[globals.channel_list[channel]] = [(">> Sent: ", message)]
globals.all_messages[globals.channel_list[channel]] = [(globals.sent_message_prefix + " ", message)]
save_message_to_db(globals.channel_list[channel], myid, message)