Skip to content

Commit

Permalink
fix: Fixed getMessageById where the message is from status (fix #823)
Browse files Browse the repository at this point in the history
  • Loading branch information
edgardmessias committed Jan 22, 2022
1 parent c0fc6d6 commit ed57b97
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 16 deletions.
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
"webpack-cli": "^4.9.1"
},
"dependencies": {
"@wppconnect/wa-js": "^1.1.9",
"@wppconnect/wa-js": "^1.1.10",
"@wppconnect/wa-version": "^1.1.27",
"atob": "^2.1.2",
"axios": "^0.25.0",
Expand Down
8 changes: 1 addition & 7 deletions src/lib/wapi/functions/get-message-by-id.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,7 @@ export async function getMessageById(id, done, serialize = true) {
return false;
}

const key = WPP.whatsapp.MsgKey.fromString(id);

if (!key) {
return false;
}

const msg = await WPP.chat.getMessageById(key.remote, key.toString());
const msg = await WPP.chat.getMessageById(id);

if (!msg) {
return false;
Expand Down

0 comments on commit ed57b97

Please sign in to comment.