Changes
🚀 New Features
- Enhanced Message Deletion with Webhook Integration: Complete message deletion handling with webhook notifications (3b3c82e)
- Updated handleDeleteForMe function with improved message retrieval and deletion capabilities
- Implemented forwardDeleteToWebhook function for real-time delete event notifications
- Added createDeletePayload function to structure delete event payloads with original message details
- Enhanced logging for better visibility during message deletion and webhook forwarding processes
- Improved webhook integration for delete operations with comprehensive event tracking
🔧 Maintenance & Updates
-
Major Chat Storage Refactoring: Complete architectural overhaul with domain-driven design principles (085f8fa)
- Domain-Driven Architecture Migration: Restructured chat storage system following clean architecture patterns
- Interface Abstraction: Moved models and interfaces from infrastructure to domain layer for better separation of concerns
- SQLite Repository Enhancement: Consolidated SQLite repository implementation with enhanced functionality and performance
- Code Cleanup: Removed unused interface methods (UpdateChatLastMessage, GetMessage, GetMediaInfo) and obsolete code
- Type Modernization: Replaced interface{} with any type alias throughout codebase for better readability
- Helper Methods: Added scanMessage, scanChat, getCount methods to reduce code duplication
- Dependency Injection: Updated all layers to use domain interfaces with proper abstraction
- Configuration Simplification: Removed CSV storage path references and streamlined configuration
- WhatsApp Client Management: Enhanced client management and removed obsolete remote logout handling
- Relogin & Webhook Fixes: Resolved critical issues with relogin functionality and webhook processing
-
JSON Serialization Enhancement: Improved data structure serialization capabilities (ab423b7)
- Added JSON tags to ExtractedMedia and EvtMessage structs for better API integration
- Enhanced clarity and usability of data structures for JSON API interactions
- Improved data serialization consistency across WhatsApp integration components
📝 Files Changed
- Major Refactoring: 20 files changed, 953 insertions(+), 1773 deletions(-)
- Architecture: Complete migration to domain-driven design with clean interfaces
- Enhanced: Message deletion handling with comprehensive webhook integration
- Improved: Chat storage architecture with better abstraction and performance
- Updated: WhatsApp integration with enhanced client management
- Simplified: Configuration and dependency management across all layers
- Optimized: Code structure with removal of unused methods and improved type safety
🎯 Summary
- Architectural Excellence: Complete migration to domain-driven design principles with clean architecture patterns
- Enhanced Reliability: Improved chat storage system with better abstraction and error handling
- Advanced Integration: Enhanced message deletion with comprehensive webhook notification system
- Code Quality: Major cleanup with removal of unused code and improved type safety
- Performance Optimization: Streamlined SQLite operations with consolidated repository implementation
- Better Maintainability: Simplified configuration and enhanced dependency injection across all layers
- Improved Stability: Fixed critical relogin and webhook processing issues
This release focuses on major architectural improvements with domain-driven design migration, enhanced message deletion capabilities with webhook integration, and significant code quality improvements. The refactoring provides better maintainability, performance, and reliability while fixing critical issues with relogin and webhook functionality.
Full Changelog: v7.2.0...v7.2.1