track if a message was sent via path or flood

This commit is contained in:
liamcottle
2025-02-13 13:28:05 +13:00
parent f86d9202a2
commit 564d2cff97
2 changed files with 5 additions and 0 deletions

View File

@@ -144,6 +144,7 @@ class Connection {
text: text,
timestamp: Date.now(),
expected_ack_crc: message.expectedAckCrc,
send_type: message.result,
error: null,
});

View File

@@ -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,
});
}