diff --git a/index.html b/index.html index 234d88d..df87252 100644 --- a/index.html +++ b/index.html @@ -5502,7 +5502,7 @@
if(myaccounts == offerData2.recipient && offerData2.status[1] == 0) { mode = 2; } - var mslen = parseInt(DOMPurify.sanitize(await DDEcontract.methods.getMessageLength(counterpartyAddress2).call())); + var mslen = parseInt(DOMPurify.sanitize(await DDEcontract.methods.getMessageLength(offerHash2, counterpartyAddress2).call())); var msIndex = localStorage.getItem(myaccounts + DDEaddy + offerHash2 + counterpartyAddress2 + 'lastMessageIndex') || 0; if(mslen > msIndex) { offerData2.newMessage = true; @@ -5724,7 +5724,7 @@ myhash = web3.utils.keccak256(inputString); offerData3.index = i; if(offerHash3 in notifications) { - var mslen2 = parseInt(DOMPurify.sanitize(await DDEcontract.methods.getMessageLength(counterpartyAddress3).call())); + var mslen2 = parseInt(DOMPurify.sanitize(await DDEcontract.methods.getMessageLength(offerHash3, counterpartyAddress3).call())); var msIndex2 = localStorage.getItem(myaccounts + DDEaddy + offerHash3 + counterpartyAddress3 + 'lastMessageIndex') || 0; if(mslen2 > msIndex2) { offerData3.newMessage = true; @@ -7551,7 +7551,7 @@