mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Close before terminate + update presence on message receive
This commit is contained in:
@@ -115,7 +115,6 @@ export class WAConnection extends Base {
|
||||
let credsChanged = false
|
||||
// if we didn't get a secret, we don't need it, we're validated
|
||||
if (json.clientToken && json.clientToken !== this.authInfo.clientToken) {
|
||||
console.log (`change: ${this.authInfo.clientToken}, ${json.clientToken}`)
|
||||
this.authInfo = { ...this.authInfo, clientToken: json.clientToken }
|
||||
credsChanged = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user