Open luidigo opened 2 years ago
here too
Use this:
id: "WapQuery", conditions: (module) => module.queryExist ? module
and put '+' at the beggining of number Store.WapQuery.queryExist("+1111111111@c.us")
Use this:
id: "WapQuery", conditions: (module) => module.queryExist ? module
and put '+' at the beggining of number Store.WapQuery.queryExist("+1111111111@c.us")
Didn't work here. Same behaviour (no response).
Are you in last Whatsapp version (multi-device)?
Thank you
Sorry, i send only the half of code
{ id: "WapQuery", conditions: (module) => module.queryExist ? module : null }
after that: Store.WapQuery.queryExist("+1111111111@c.us")
finally: Check the variable _value at return, will return 'wid' with server, user and _serialized, if the number doesnt exist, the _value will return null
(edited)
Sorry, i send only the half of code
{ id: "WapQuery", conditions: (module) => module.queryExist ? module : null }
after that: Store.WapQuery.queryExist("+1111111111@c.us")
finally: Check the variable _value at return, will return 'wid' with server, user and _serialized, if the number doesnt exist, the _value will return null
(edited)
That did the trick! Thank you.
In time, How do you check if it's multi-device version?
This code works ONLY for "non Multi-Device"
conditions: (module) => (module.default && module.default.queryExist) ? module.default : null
and this works only for multi device
conditions: (module) => module.queryExist ? module : null
Cheers!
Sorry, i send only the half of code
{ id: "WapQuery", conditions: (module) => module.queryExist ? module : null }
after that: Store.WapQuery.queryExist("+1111111111@c.us")
finally: Check the variable _value at return, will return 'wid' with server, user and _serialized, if the number doesnt exist, the _value will return null
(edited)
Its returning the same response whether the number is having whatsapp or not
Store.WapQuery.queryExist("+1111111111@c.us")
I'm also getting value undefined !
still not fixed... in beta mode
any updates on this new number check update in beta mode?
I replaced the queryExist with this one
if (window.WAPI.checkNumberStatus(id)) {
it didn't work for me, follow my code
**window.WAPI.checkNumberStatus = function (id, done) { window.Store.WapQuery.queryExist(id).then((result) => { if( done !== undefined) { if (result.jid === undefined) throw 404; done(window.WAPI._serializeNumberStatusObj(result)); } }).catch((e) => { if (done !== undefined) { done(window.WAPI._serializeNumberStatusObj({ status: e, jid : id })); } });
return true;
};**
how do i update the two lines?
{ id: "WapQuery", conditions: (module) => (module.queryExist) ? module : ((module.default && module.default.queryExist) ? module.default : null) },
I replaced the queryExist with this one
if (window.WAPI.checkNumberStatus(id)) {
hi, how do u replace ? can u share the injector.js file? thx
Sorry, i send only the half of code
{ id: "WapQuery", conditions: (module) => module.queryExist ? module : null }
after that: Store.WapQuery.queryExist("+1111111111@c.us") finally: Check the variable _value at return, will return 'wid' with server, user and _serialized, if the number doesnt exist, the _value will return null (edited)Its returning the same response whether the number is having whatsapp or not
did you solve this issue? Please share your solution if you can fix it! Thanks
Hey,
I'am having problem with this function. It's not returning anything. This problem began with new whatsapp multi-device version.
{ id: 'WapQuery', conditions: (module) => (module.default && module.default.queryExist) ? module.default : null }
and
Store.WapQuery.queryExist("1111111111@c.us")
Anyone with same problem?