Skip to content

Commit 0de3d1c

Browse files
committed
fix(Chat): in-chat transfer without comment is marked as "Unsupported transaction"
1 parent 0a59d48 commit 0de3d1c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/lib/chat/helpers/normalizeMessage.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,11 @@ export function normalizeMessage(abstract) {
9696
transaction.type = notSupportedYetCrypto || 'UNKNOWN_CRYPTO'
9797
transaction.status = TS.UNKNOWN
9898
}
99-
} else if (typeof abstract.message === 'string' || abstract.type === Transactions.SEND) {
99+
} else if (
100+
typeof abstract.message === 'string' ||
101+
abstract.type === Transactions.SEND ||
102+
abstract.amount > 0
103+
) {
100104
// ADM transaction or Message
101105
transaction.message = abstract.message || ''
102106
transaction.hash = abstract.id // adm transaction id (hash)

0 commit comments

Comments
 (0)