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
+3 -1
View File
@@ -62,7 +62,9 @@ export const DEFAULT_CONNECTION_CONFIG: SocketConfig = {
markOnlineOnConnect: true,
syncFullHistory: true,
patchMessageBeforeSending: msg => msg,
shouldSyncHistoryMessage: () => true,
shouldSyncHistoryMessage: ({ syncType }: proto.Message.IHistorySyncNotification) => {
return syncType !== proto.HistorySync.HistorySyncType.FULL
},
shouldIgnoreJid: () => false,
linkPreviewImageThumbnailWidth: 192,
transactionOpts: { maxCommitRetries: 10, delayBetweenTriesMs: 3000 },