mirror of
https://github.com/MeshEnvy/lobbs.git
synced 2026-03-28 16:22:33 +01:00
fix: add filtering for direct messages in LoBBSModule to ignore broadcasts
This commit is contained in:
@@ -122,6 +122,11 @@ LoBBSModule::LoBBSModule() : SinglePortModule("LoBBS", meshtastic_PortNum_TEXT_M
|
||||
|
||||
ProcessMessage LoBBSModule::handleReceived(const meshtastic_MeshPacket &mp)
|
||||
{
|
||||
// Only process direct messages to this node, ignore broadcasts
|
||||
if (!isToUs(&mp)) {
|
||||
return ProcessMessage::CONTINUE;
|
||||
}
|
||||
|
||||
LOG_DEBUG("LoBBS received DM from=0x%0x, id=%d, msg=%.*s", mp.from, mp.id, mp.decoded.payload.size, mp.decoded.payload.bytes);
|
||||
|
||||
meshtastic_LoBBSUser existingUser = meshtastic_LoBBSUser_init_zero;
|
||||
|
||||
Reference in New Issue
Block a user