mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-14 06:42:34 +00:00
Update channel mute for adjusted protobuf
This commit is contained in:
@@ -725,7 +725,7 @@ void handleNewMessage(const StoredMessage &sm, const meshtastic_MeshPacket &pack
|
|||||||
bool isChannelMuted = false;
|
bool isChannelMuted = false;
|
||||||
if (sm.type == MessageType::BROADCAST) {
|
if (sm.type == MessageType::BROADCAST) {
|
||||||
const meshtastic_Channel channel = channels.getByIndex(packet.channel ? packet.channel : channels.getPrimaryIndex());
|
const meshtastic_Channel channel = channels.getByIndex(packet.channel ? packet.channel : channels.getPrimaryIndex());
|
||||||
if (channel.settings.mute)
|
if (channel.settings.has_module_settings && channel.settings.module_settings.is_muted)
|
||||||
isChannelMuted = true;
|
isChannelMuted = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user