Fix
--Fixed transaction signed message not rendering in real time
This commit is contained in:
parent
402623d82c
commit
5469fd817b
@ -3124,11 +3124,11 @@
|
|||||||
fill: 'forwards'
|
fill: 'forwards'
|
||||||
}
|
}
|
||||||
for (let messageId in messagesData) {
|
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
|
const chatAddress = floID || groupID || pipeID
|
||||||
// code to run if a chat is opened
|
// code to run if a chat is opened
|
||||||
if (activeChat && floCrypto.isSameAddr(activeChat.address, chatAddress)) {
|
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
|
// if message is sent by me, then dont add it to the chat
|
||||||
} else {
|
} else {
|
||||||
const messageBody = render.messageBubble(messagesData[messageId]);
|
const messageBody = render.messageBubble(messagesData[messageId]);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user