From 5469fd817b2e636830b5c83c0fc0a519907aba06 Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Wed, 5 Apr 2023 20:37:12 +0530 Subject: [PATCH] Fix --Fixed transaction signed message not rendering in real time --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 115ff1a..2cb02d3 100644 --- a/index.html +++ b/index.html @@ -3124,11 +3124,11 @@ fill: 'forwards' } for (let messageId in messagesData) { - const { category, floID, time, message, sender, groupID, admin, name, pipeID, unconfirmed } = messagesData[messageId] + const { category, floID, time, message, sender, groupID, admin, name, pipeID, unconfirmed, type } = messagesData[messageId] const chatAddress = floID || groupID || pipeID // code to run if a chat is opened if (activeChat && floCrypto.isSameAddr(activeChat.address, chatAddress)) { - if (!sentByMe && sender && floCrypto.isSameAddr(sender, floDapps.user.id)) { + if (!sentByMe && (type && type !== 'TRANSACTION') && sender && floCrypto.isSameAddr(sender, floDapps.user.id)) { // if message is sent by me, then dont add it to the chat } else { const messageBody = render.messageBubble(messagesData[messageId]);