mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Revert "feat: resync main app state on first open"
This reverts commit 060c838707.
This commit is contained in:
@@ -614,10 +614,6 @@ export const makeChatsSocket = (config: SocketConfig) => {
|
||||
fetchPrivacySettings(),
|
||||
sendPresenceUpdate('available')
|
||||
])
|
||||
if(!authState.creds.didInitialAppStateSync) {
|
||||
await resyncMainAppState()
|
||||
ev.emit('creds.update', { didInitialAppStateSync: true })
|
||||
}
|
||||
}
|
||||
|
||||
ws.on('CB:presence', handlePresenceUpdate)
|
||||
|
||||
@@ -46,7 +46,6 @@ export type AuthenticationCreds = SignalCreds & {
|
||||
|
||||
lastAccountSyncTimestamp?: number
|
||||
accountSettings: AccountSettings
|
||||
didInitialAppStateSync: boolean
|
||||
}
|
||||
|
||||
export type SignalDataTypeMap = {
|
||||
|
||||
@@ -111,8 +111,7 @@ export const initAuthCreds = (): AuthenticationCreds => {
|
||||
serverHasPreKeys: false,
|
||||
accountSettings: {
|
||||
unarchiveChats: false
|
||||
},
|
||||
didInitialAppStateSync: false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user