fix(#151): widen DirectRepeater to configured path-hash width (Nearby Repeaters)
DirectRepeater stored only pubkeyFirstByte (1 byte of the last hop), so the SNR indicator + Nearby Repeaters dialog showed a 1-byte prefix and matched the wrong repeater on 2-/3-byte path-hash meshes. Capture the last hop's full configured- width prefix and use it for display, contact-match, and dedup. - DirectRepeater.pubkeyPrefix (Uint8List) + prefixHex getter; pubkeyFirstByte retained for the path-management / chat matching sites (those are #156). - _updateDirectRepeater captures path[len-width..] (or the pubkey prefix when no path); dedup by listEquals(pubkeyPrefix). - snr_indicator: status-bar + dialog render prefixHex; matcher keys on the full width prefix so the correct repeater name resolves. Bumps build to +45. analyze clean; 6 DirectRepeater tests (2 new); Gemini: ship. Closes #151 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>pull/201/head
parent
f6ebeef4f7
commit
f25848d16c
Loading…
Reference in new issue