From 9789ebf314fdec9003da5b890e9fb932e549e11e Mon Sep 17 00:00:00 2001 From: bludnic Date: Sun, 16 Jun 2024 15:51:31 +0100 Subject: [PATCH] fix(chat): send ADM coin transaction is marked as unsupported --- src/lib/chat/helpers/normalizeMessage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/chat/helpers/normalizeMessage.js b/src/lib/chat/helpers/normalizeMessage.js index 56fbfef3f..ae3cef22b 100644 --- a/src/lib/chat/helpers/normalizeMessage.js +++ b/src/lib/chat/helpers/normalizeMessage.js @@ -1,6 +1,6 @@ import { getRealTimestamp } from './utils/getRealTimestamp' import { isNumeric } from '@/lib/numericHelpers' -import { TransactionStatus as TS } from '@/lib/constants' +import { TransactionStatus as TS, Transactions } from '@/lib/constants' import { KnownCryptos, UnsupportedCryptos } from './constants' /** @@ -96,7 +96,7 @@ export function normalizeMessage(abstract) { transaction.type = notSupportedYetCrypto || 'UNKNOWN_CRYPTO' transaction.status = TS.UNKNOWN } - } else if (typeof abstract.message === 'string') { + } else if (typeof abstract.message === 'string' || abstract.type === Transactions.SEND) { // ADM transaction or Message transaction.message = abstract.message || '' transaction.hash = abstract.id // adm transaction id (hash)