mirror of
https://github.com/MarekWo/mc-webui.git
synced 2026-06-11 09:14:52 +02:00
4effa47fe1
Same root cause as the previous console fix: meshcore lib 2.x stores out_path_len as the masked hop count and out_path_hash_mode separately. Several UI surfaces and the DM retry logic were still decoding the hash-size mode from the upper bits of out_path_len, which always yields 1 for in-memory contact data and silently truncates multi-byte paths. Fixed sites: - /api/contacts/detailed: path_or_mode and outgoing payload now use out_path_hash_mode; the field is included in /api/contacts too. - dm.js: Contact Info modal computes hashSize for the import button from out_path_hash_mode. - console "contacts" command: same correction as "path". - device_manager._paths_match / _extract_path_hex: accept hash mode as a parameter; callers (_dm_retry_task, _delayed_path_backfill, Phase 2 rotation dedup) pass contact.out_path_hash_mode. - PATH event handlers: derive hash_size from path_hash_mode instead of decoding it from an already-masked path_len.