feat(history): add proper logging support for history sync debugging
- Add optional ILogger parameter to processHistoryMessage and downloadAndProcessHistorySyncNotification functions - Add trace-level logging with syncType and progress for debugging - Preserve all existing imports and LID-PN extraction functionality - Enhanced JSDoc documentation with detailed parameter descriptions This enables trace-level visibility into history sync processing, helping debug issues with message synchronization and LID mappings.
This commit is contained in:
@@ -320,7 +320,7 @@ const processMessage = async (
|
||||
})
|
||||
}
|
||||
|
||||
const data = await downloadAndProcessHistorySyncNotification(histNotification, options)
|
||||
const data = await downloadAndProcessHistorySyncNotification(histNotification, options, logger)
|
||||
|
||||
// Emit LID-PN mappings from history sync
|
||||
// This is how WhatsApp Web learns mappings for chats with non-contacts
|
||||
|
||||
Reference in New Issue
Block a user