@juzi/whatsapp-web.js
Advanced tools
Comparing version 1.21.2 to 1.21.3
{ | ||
"name": "@juzi/whatsapp-web.js", | ||
"version": "1.21.2", | ||
"version": "1.21.3", | ||
"description": "Library for interacting with the WhatsApp Web API ", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
@@ -246,5 +246,4 @@ 'use strict'; | ||
window.qrChanged(mut.target.dataset.ref); | ||
} else | ||
} else if (mut.type === 'childList') { | ||
// Listens to retry button, when found, click it | ||
if (mut.type === 'childList') { | ||
const retry_button = document.querySelector(selectors.QR_RETRY_BUTTON); | ||
@@ -1212,3 +1211,7 @@ if (retry_button) retry_button.click(); | ||
const result = await window.Store.QueryExist(wid); | ||
if (!result || result.wid === undefined) return null; | ||
/** | ||
* The number of the result may be different with the input number. | ||
* See: https://github.com/juzibot/whatsapp-web.js/issues/23 | ||
*/ | ||
if (!result || result.wid === undefined || result.wid._serialized !== number) return null; | ||
return result.wid; | ||
@@ -1215,0 +1218,0 @@ }, number); |
286663
6682