mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-20 12:39:20 +00:00
fix: getNumberId Error: Evaluation failed: TypeError: e.isLid is not a function (#1571)
This commit is contained in:
@@ -949,7 +949,8 @@ class Client extends EventEmitter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return await this.pupPage.evaluate(async number => {
|
return await this.pupPage.evaluate(async number => {
|
||||||
const result = await window.Store.QueryExist(number);
|
const wid = window.Store.WidFactory.createWid(number);
|
||||||
|
const result = await window.Store.QueryExist(wid);
|
||||||
if (!result || result.wid === undefined) return null;
|
if (!result || result.wid === undefined) return null;
|
||||||
return result.wid;
|
return result.wid;
|
||||||
}, number);
|
}, number);
|
||||||
|
|||||||
Reference in New Issue
Block a user