mirror of
https://github.com/meshtastic/firmware.git
synced 2026-10-26 01:49:09 -04:00
don't send messages the phone sent us back towards the phone
This commit is contained in:
1 parent
2f6034b067
commit
950b32232f
20 files changed
+87
-58
No files matched your search
@@ -137,8 +137,9 @@ bool EnvironmentalMeasurementPlugin::wantUIFrame() {
|
||||
String GetSenderName(const MeshPacket &mp) {
|
||||
String sender;
|
||||
|
||||
if (nodeDB.getNode(mp.from)){
|
||||
sender = nodeDB.getNode(mp.from)->user.short_name;
|
||||
auto node = nodeDB.getNode(getFrom(&mp));
|
||||
if (node){
|
||||
sender = node->user.short_name;
|
||||
}
|
||||
else {
|
||||
sender = "UNK";
|
||||
|
||||
Reference in new issue
Block a user