mirror of
https://github.com/aljazceru/meshcore-web.git
synced 2025-12-18 16:44:21 +01:00
track if a message was sent via path or flood
This commit is contained in:
@@ -144,6 +144,7 @@ class Connection {
|
||||
text: text,
|
||||
timestamp: Date.now(),
|
||||
expected_ack_crc: message.expectedAckCrc,
|
||||
send_type: message.result,
|
||||
error: null,
|
||||
});
|
||||
|
||||
|
||||
@@ -58,6 +58,9 @@ async function initDatabase(publicKeyHex) {
|
||||
expected_ack_crc: {
|
||||
type: 'integer',
|
||||
},
|
||||
send_type: {
|
||||
type: 'integer',
|
||||
},
|
||||
error: {
|
||||
type: 'string',
|
||||
},
|
||||
@@ -99,6 +102,7 @@ class Message {
|
||||
text: data.text,
|
||||
timestamp: Date.now(),
|
||||
expected_ack_crc: data.expected_ack_crc,
|
||||
send_type: data.send_type,
|
||||
error: null,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user