defaults, index: change shouldSyncHistoryMessage behavior

This commit is contained in:
Rajeh Taher
2026-01-22 14:13:00 +02:00
parent 506017b0c4
commit c81c074dbd
2 changed files with 3 additions and 8 deletions
-7
View File
@@ -9,13 +9,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)
}