mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix: fire "connection-update" on legacy socket create
This commit is contained in:
@@ -220,6 +220,16 @@ const makeAuthSocket = (config: LegacySocketConfig) => {
|
|||||||
printQRIfNecessaryListener(ev, logger)
|
printQRIfNecessaryListener(ev, logger)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
process.nextTick(() => {
|
||||||
|
ev.emit('connection.update', {
|
||||||
|
connection: 'connecting',
|
||||||
|
receivedPendingNotifications: false,
|
||||||
|
legacy: {
|
||||||
|
phoneConnected: false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
return {
|
return {
|
||||||
...socket,
|
...socket,
|
||||||
state,
|
state,
|
||||||
|
|||||||
Reference in New Issue
Block a user