config: skip FULL history sync by default (market standard)

Remove the override that was forcing full history sync when
syncFullHistory was true. Now uses the default from Defaults/index.ts
which skips FULL sync type for better performance and stability.

Benefits:
- Faster connection time (2-10s vs 30s-5min)
- Lower bandwidth usage (1-10MB vs 50-500MB+)
- More stable connections (no timeouts)
- INITIAL_BOOTSTRAP + RECENT provide sufficient data

Users can still customize via shouldSyncHistoryMessage if needed.
This commit is contained in:
Claude
2026-01-22 19:59:20 +00:00
parent 1dfdd47a12
commit f2dd5c81c8
-7
View File
@@ -39,13 +39,6 @@ const makeWASocket = (config: UserFacingSocketConfig) => {
...config
}
// If the user hasn't provided their own history sync function,
// let's create a default one that respects the syncFullHistory flag.
// TODO: Change
if (config.shouldSyncHistoryMessage === undefined) {
newConfig.shouldSyncHistoryMessage = () => !!newConfig.syncFullHistory
}
return makeCommunitiesSocket(newConfig)
}