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
parent af431df1c9
commit 73e4b3b6e0

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);