Skip to content

Commit

Permalink
feat(get message): move decrypted message to transactionDecrypted
Browse files Browse the repository at this point in the history
… from `transaction`
  • Loading branch information
martiliones committed May 26, 2024
1 parent 4fbcfba commit 4a56fdc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/api/get.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ export async function getMessage(id = requiredParam('id'), customPassphrase) {
transaction.asset.chat.own_message,
);

transaction.asset.chat.message = decoded;

delete transaction.asset.chat.own_message;
res.transactionDecrypted = {
message: decoded,
};
}
}

Expand Down

0 comments on commit 4a56fdc

Please sign in to comment.