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 = [
|
||||
(async () => {
|
||||
const json = ['admin', 'init', this.version, this.browserDescription, this.authInfo?.clientID, true]
|
||||
const ref = await this.query({json, expect200: true, waitForOpen: false, longTag: true})
|
||||
const {ref} = await this.query({
|
||||
json: ['admin', 'init', this.version, this.browserDescription, this.authInfo?.clientID, true],
|
||||
expect200: true,
|
||||
waitForOpen: false,
|
||||
longTag: true
|
||||
})
|
||||
if (!canLogin) {
|
||||
const result = await this.generateKeysForAuth (ref)
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user