mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
First QR scan bug fix
This commit is contained in:
@@ -18,8 +18,12 @@ export class WAConnection extends Base {
|
|||||||
|
|
||||||
const initQueries = [
|
const initQueries = [
|
||||||
(async () => {
|
(async () => {
|
||||||
const json = ['admin', 'init', this.version, this.browserDescription, this.authInfo?.clientID, true]
|
const {ref} = await this.query({
|
||||||
const ref = await this.query({json, expect200: true, waitForOpen: false, longTag: true})
|
json: ['admin', 'init', this.version, this.browserDescription, this.authInfo?.clientID, true],
|
||||||
|
expect200: true,
|
||||||
|
waitForOpen: false,
|
||||||
|
longTag: true
|
||||||
|
})
|
||||||
if (!canLogin) {
|
if (!canLogin) {
|
||||||
const result = await this.generateKeysForAuth (ref)
|
const result = await this.generateKeysForAuth (ref)
|
||||||
return result
|
return result
|
||||||
|
|||||||
Reference in New Issue
Block a user