Skip to content

Commit

Permalink
fix(wapi): sendMessage function throw exception on invalid object
Browse files Browse the repository at this point in the history
  • Loading branch information
limshengli committed Apr 5, 2022
1 parent 4550196 commit 4332fce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/wapi/functions/check-send-exist.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export async function sendExist(chatId, returnChat = true, Send = true) {
return WAPI.scope(chatId, true, ck.status, 'The number does not exist');
}

const chatWid = new Store.WidFactory.createWid(chatWid);
const chatWid = new Store.WidFactory.createWid(chatId);

let chat =
ck && ck.id && ck.id._serialized
Expand Down

0 comments on commit 4332fce

Please sign in to comment.