Add unmessagable to node list

This commit is contained in:
Garth Vander Houwen 2025-05-15 08:06:37 -07:00
parent 690b41e0a0
commit faa6886ec2

View file

@ -92,7 +92,7 @@ struct NodeList: View {
FavoriteNodeButton(bleManager: bleManager, context: context, node: node)
/// Don't show message, trace route, position exchange or delete context menu items for the connected node
if connectedNode.num != node.num {
if !node.viaMqtt || node.viaMqtt && node.hopsAway == 0 {
if !(node.user?.unmessagable ?? true) {
Button(action: {
if let url = URL(string: "meshtastic:///messages?userNum=\(node.num)") {
UIApplication.shared.open(url)