From 638917dea8bb36b2823261c9fbc87430c859b3c3 Mon Sep 17 00:00:00 2001 From: ford-jones Date: Thu, 11 Sep 2025 17:31:36 +1200 Subject: [PATCH] Added mute state to nodedb entries --- meshtastic/admin.proto | 10 ++++++++++ meshtastic/deviceonly.proto | 10 ++++++++-- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/meshtastic/admin.proto b/meshtastic/admin.proto index 0259c2a..2f805ca 100644 --- a/meshtastic/admin.proto +++ b/meshtastic/admin.proto @@ -414,6 +414,16 @@ message AdminMessage { */ uint32 remove_ignored_node = 48; + /* + * Set specified node-num to be muted + */ + uint32 set_muted_node = 49; + + /* + * Set specified node-num to be heard / not-muted + */ + uint32 remove_muted_node = 50; + /* * Begins an edit transaction for config, module config, owner, and channel settings changes * This will delay the standard *implicit* save to the file system and subsequent reboot behavior until committed (commit_edit_settings) diff --git a/meshtastic/deviceonly.proto b/meshtastic/deviceonly.proto index d449373..7465399 100644 --- a/meshtastic/deviceonly.proto +++ b/meshtastic/deviceonly.proto @@ -159,16 +159,22 @@ message NodeInfoLite { */ bool is_ignored = 11; + /* + * True if node has been muted + * Persists between NodeDB internal clean ups + */ + bool is_muted = 12; + /* * Last byte of the node number of the node that should be used as the next hop to reach this node. */ - uint32 next_hop = 12; + uint32 next_hop = 13; /* * Bitfield for storing booleans. * LSB 0 is_key_manually_verified */ - uint32 bitfield = 13; + uint32 bitfield = 14; } /*