Skip to content

Commit

Permalink
Merge pull request #563 from kyraex/retain-creds
Browse files Browse the repository at this point in the history
Retain existing authState.creds.me properties and add lid
  • Loading branch information
SheIITear authored Jan 2, 2024
2 parents 140ecf1 + 9df3d24 commit a60cdfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Socket/socket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ export const makeSocket = (config: SocketConfig) => {
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('creds.update', { me: { ...authState.creds.me!, lid: node.attrs.lid } })

ev.emit('connection.update', { connection: 'open' })
})
Expand Down

0 comments on commit a60cdfb

Please sign in to comment.