fix(ui): include out_path_hash_mode in cli.get_contacts_with_last_seen

This was the missing piece behind the lingering 1-byte path rendering
in Contact Info / Contact Management. The cache layer between
mc.contacts and the /api/contacts/detailed endpoint rebuilt each
contact dict by hand and dropped the out_path_hash_mode field, so
the API always saw the default 0 and rendered multi-byte paths as
single-byte hops.
This commit is contained in:
MarekWo
2026-06-05 09:04:40 +02:00
parent 4effa47fe1
commit 60e7e57663
+1
View File
@@ -184,6 +184,7 @@ def get_contacts_with_last_seen() -> Tuple[bool, Dict[str, Dict], str]:
'flags': contact.get('flags', 0),
'out_path_len': contact.get('out_path_len', -1),
'out_path': contact.get('out_path', ''),
'out_path_hash_mode': contact.get('out_path_hash_mode', 0),
'adv_name': contact.get('adv_name', contact.get('name', '')),
'last_advert': int(last_adv) if last_adv and isinstance(last_adv, (int, float)) and last_adv > 0 else 0,
'adv_lat': contact.get('adv_lat', 0.0),