mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
feat: add "receivedInitialSync" connection update
This commit is contained in:
@@ -41,6 +41,9 @@ export const makeChatsSocket = (config: SocketConfig) => {
|
||||
'doing initial app state sync'
|
||||
)
|
||||
await resyncMainAppState(recvChats)
|
||||
|
||||
const accountSyncCounter = (authState.creds.accountSyncCounter || 0) + 1
|
||||
ev.emit('creds.update', { accountSyncCounter })
|
||||
} else {
|
||||
logger.warn('connection closed before app state sync')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user