fix: getNumberId Error: Evaluation failed: TypeError: e.isLid is not a function (#1571)

This commit is contained in:
༺ LᴇG̸ᴇɴD ༻ 2022-07-10 03:07:57 -03:00 • committed by GitHub
commit 73e4b3b6e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -949,7 +949,8 @@ class Client extends EventEmitter {
}
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;
return result.wid;
}, number);