meshmonitor icon indicating copy to clipboard operation
meshmonitor copied to clipboard

[BUG] 4.6.4 - UDP bridige nodes stiil appear on map even if "Show UDP" is unchecked

Open kokoshell opened this issue 6 months ago • 1 comments

Hi Yeraze, I happily noticed the introduction of 3 new check boxes "Show RF" "Show UDP" and "Show MQTT". But "Show UDP" isnt still working properly, if box unchecked all UDP nodes from the other side of the bridge should disapear from map and they dont ! Can you please check again this functionality ? Best regards, Kokoshell

kokoshell avatar May 23 '26 08:05 kokoshell

Thanks for the detailed report, @kokoshell! I've identified the root cause.

Root cause

When the Show RF / Show UDP / Show MQTT checkboxes were added, the node markers on the map were correctly wired up to a shared helper (nodePassesTransportFilter) that filters by all three transport classes. However, a secondary filter used to hide neighbor-info connection lines (visibleNodeNums in App.tsx) was only checking the MQTT filter — and doing so via the old viaMqtt boolean instead of the new transport-mechanism classification. The RF and UDP checks were simply absent from that code path.

The result: unchecking "Show UDP" hid the node dot/marker correctly, but the connection lines to and from those nodes remained visible, making it appear as if the nodes were still on the map.

Fix

Replaced the partial MQTT-only check in visibleNodeNums with the same nodePassesTransportFilter call used by the marker renderer, and added showRfNodes / showUdpNodes to the useMemo dependency array so the set updates reactively when any toggle changes.

A fix is ready on branch claude/great-dijkstra-trkPu — PR incoming.


Generated by Claude Code

Yeraze avatar May 23 '26 08:05 Yeraze