mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Manage group metdata state in Baileys + Remove presence from Contact
This commit is contained in:
@@ -89,7 +89,7 @@ export class WAConnection extends Base {
|
||||
|
||||
this.conn.on('message', data => this.onMessageRecieved(data as any))
|
||||
|
||||
this.conn.on ('open', async () => {
|
||||
this.conn.once('open', async () => {
|
||||
this.startKeepAliveRequest()
|
||||
this.logger.info(`connected to WhatsApp Web server, authenticating via ${reconnectID ? 'reconnect' : 'takeover'}`)
|
||||
|
||||
@@ -109,8 +109,8 @@ export class WAConnection extends Base {
|
||||
)
|
||||
|
||||
this.conn
|
||||
.removeAllListeners ('error')
|
||||
.removeAllListeners ('close')
|
||||
.removeAllListeners('error')
|
||||
.removeAllListeners('close')
|
||||
this.stopDebouncedTimeout ()
|
||||
resolve ({ ...authResult, ...chatsResult })
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user