mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Merge pull request #563 from kyraex/retain-creds
Retain existing authState.creds.me properties and add lid
This commit is contained in:
@@ -630,7 +630,7 @@ export const makeSocket = (config: SocketConfig) => {
|
|||||||
logger.info('opened connection to WA')
|
logger.info('opened connection to WA')
|
||||||
clearTimeout(qrTimer) // will never happen in all likelyhood -- but just in case WA sends success on first try
|
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('creds.update', { me: { ...authState.creds.me!, lid: node.attrs.lid } })
|
||||||
|
|
||||||
ev.emit('connection.update', { connection: 'open' })
|
ev.emit('connection.update', { connection: 'open' })
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user