mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fixes
This commit is contained in:
@@ -623,14 +623,15 @@ export const makeSocket = (config: SocketConfig) => {
|
||||
}
|
||||
})
|
||||
// login complete
|
||||
ws.on('CB:success', async (node) => {
|
||||
console.log(node.attrs) // temporary log, don't merge before removing
|
||||
ws.on('CB:success', async(node: BinaryNode) => {
|
||||
await uploadPreKeysToServerIfRequired()
|
||||
await sendPassiveIq('active')
|
||||
|
||||
logger.info('opened connection to WA')
|
||||
clearTimeout(qrTimer) // will never happen in all likelyhood -- but just in case WA sends success on first try
|
||||
|
||||
ev.emit('creds.update', { me: { id: authState.creds.me!.id, lid: node.attrs.lid } })
|
||||
|
||||
ev.emit('connection.update', { connection: 'open' })
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user