fix(mesh): set Meshtastic hop limit and show LoRa pill

This commit is contained in:
archipelago
2026-06-30 05:59:53 -04:00
parent c2c4b5af7d
commit a91814641e
2 changed files with 27 additions and 3 deletions
+2 -2
View File
@@ -1076,12 +1076,12 @@ function isEditedMessage(msg: MeshMessage): number | null {
function isDeletedMessage(msg: MeshMessage): boolean {
return msg.message_type === 'delete' || msg.typed_payload?.deleted === true
}
/// Short label for the per-message transport pill (Mesh / FIPS / Tor), or null
/// Short label for the per-message transport pill (LoRa / FIPS / Tor), or null
/// when the transport isn't known. Covers both meshcore and meshtastic since
/// the field lives on the shared MeshMessage.
function transportLabel(msg: MeshMessage): string | null {
switch (msg.transport) {
case 'lora': return 'Mesh'
case 'lora': return 'LoRa'
case 'fips': return 'FIPS'
case 'tor': return 'Tor'
default: return null