Fixed bug in original commit - we need to save the chat reference to the db.

This commit is contained in:
CalDescent 2022-10-22 12:50:28 +01:00
parent a4759a0ef4
commit 23a5c5f9b4

View File

@ -46,7 +46,7 @@ public class HSQLDBChatTransactionRepository extends HSQLDBTransactionRepository
saveHelper.bind("signature", chatTransactionData.getSignature()).bind("nonce", chatTransactionData.getNonce()) saveHelper.bind("signature", chatTransactionData.getSignature()).bind("nonce", chatTransactionData.getNonce())
.bind("sender", chatTransactionData.getSender()).bind("recipient", chatTransactionData.getRecipient()) .bind("sender", chatTransactionData.getSender()).bind("recipient", chatTransactionData.getRecipient())
.bind("is_text", chatTransactionData.getIsText()).bind("is_encrypted", chatTransactionData.getIsEncrypted()) .bind("is_text", chatTransactionData.getIsText()).bind("is_encrypted", chatTransactionData.getIsEncrypted())
.bind("data", chatTransactionData.getData()); .bind("data", chatTransactionData.getData()).bind("chat_reference", chatTransactionData.getChatReference());
try { try {
saveHelper.execute(this.repository); saveHelper.execute(this.repository);