v0.3.0 - Fix Encryption Bugs & Add Message Caching
π Major Encryption Fixes
This release fixes critical encryption bugs that were causing "MAC verification failed" errors and preventing users from viewing their conversation history.
β¨ What's New
Message Cache System
- Implemented encrypted message cache for persistent conversation history
- Messages are cached with password protection using ChaCha20-Poly1305
- View your entire conversation history without decryption issues
Bug Fixes
- Fixed Session Establishment: Corrected X3DH key agreement to use signed prekey properly
- Fixed Ratchet Synchronization: Messages can now be viewed multiple times
- Sent Messages Visible: Your own sent messages now appear in conversations
- Removed Unused Code: Cleaned up wasteful ephemeral key generation
New Features
- Cache management UI in security menu
- View Cache Status (message count and size)
- Clear Message Cache option
- Automatic session establishment from incoming messages
- Better error messages for encryption failures
π Upgrade Notes
This release is backward compatible with existing sessions and messages. The message cache will be built gradually as you view conversations.
π Related
- Must be deployed with server v0.1.1 for full fix
- See PR #11 for technical details
π Bugs Fixed
- MAC verification failures when viewing conversations multiple times
- Unable to see sent messages in conversation history
- Session establishment computing different shared secrets
- Ratchet state breaking on repeated message views