Port consent-gated one-key DM queue to keymindCascade
This commit is contained in:
1 parent
ea4917b322
commit
eaf19c3638
13 files changed
+443
-40
No files matched your search
@@ -315,6 +315,9 @@ void BaseChatMesh::onPeerDataRecv(mesh::Packet* packet, uint8_t type, int sender
|
||||
|
||||
ContactInfo& from = contacts[i];
|
||||
|
||||
// A transient service peer is not an accepted chat contact.
|
||||
if (type == PAYLOAD_TYPE_TXT_MSG && from.type == ADV_TYPE_NONE) return;
|
||||
|
||||
if (type == PAYLOAD_TYPE_TXT_MSG && len > 5) {
|
||||
uint32_t sender_timestamp;
|
||||
memcpy(&sender_timestamp, data, 4); // timestamp (by sender's RTC clock - which could be wrong)
|
||||
|
||||
Reference in new issue
Block a user