mirror of
https://github.com/aljazceru/meshcore-web.git
synced 2025-12-18 00:24: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,
|
text: text,
|
||||||
timestamp: Date.now(),
|
timestamp: Date.now(),
|
||||||
expected_ack_crc: message.expectedAckCrc,
|
expected_ack_crc: message.expectedAckCrc,
|
||||||
|
send_type: message.result,
|
||||||
error: null,
|
error: null,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -58,6 +58,9 @@ async function initDatabase(publicKeyHex) {
|
|||||||
expected_ack_crc: {
|
expected_ack_crc: {
|
||||||
type: 'integer',
|
type: 'integer',
|
||||||
},
|
},
|
||||||
|
send_type: {
|
||||||
|
type: 'integer',
|
||||||
|
},
|
||||||
error: {
|
error: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
},
|
},
|
||||||
@@ -99,6 +102,7 @@ class Message {
|
|||||||
text: data.text,
|
text: data.text,
|
||||||
timestamp: Date.now(),
|
timestamp: Date.now(),
|
||||||
expected_ack_crc: data.expected_ack_crc,
|
expected_ack_crc: data.expected_ack_crc,
|
||||||
|
send_type: data.send_type,
|
||||||
error: null,
|
error: null,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user