feat: implement chats history synchronization on login #4

Merged
andrielfr merged 5 commits from feat/history-sync into master 2026-03-25 01:36:40 -03:00
Owner

Add support for syncing chats and messages from WhatsApp history:

  • Handle JoinedGroup events to restore conversation history
  • Add SyncedMessage struct for history message data
  • Implement background processing for CPU-intensive protobuf parsing
  • Add ChatSynced, MessagesSynced, and ContactUpdated message types
  • Process contact updates from sync events
  • Fix timestamp display to use local timezone
  • Apply various clippy fixes and code quality improvements
Add support for syncing chats and messages from WhatsApp history: - Handle JoinedGroup events to restore conversation history - Add SyncedMessage struct for history message data - Implement background processing for CPU-intensive protobuf parsing - Add ChatSynced, MessagesSynced, and ContactUpdated message types - Process contact updates from sync events - Fix timestamp display to use local timezone - Apply various clippy fixes and code quality improvements
feat: implement chats history synchronization on login
Some checks are pending
CI / Rustfmt (pull_request) Waiting to run
CI / Flatpak (pull_request) Waiting to run
9fc71c7eb9
Add support for syncing chats and messages from WhatsApp history:
- Handle JoinedGroup events to restore conversation history
- Add SyncedMessage struct for history message data
- Implement background processing for CPU-intensive protobuf parsing
- Add ChatSynced, MessagesSynced, and ContactUpdated message types
- Process contact updates from sync events
- Fix timestamp display to use local timezone
- Apply various clippy fixes and code quality improvements
refactor: replace tokio spawn with relm4 spawn for framework consistency
Some checks are pending
CI / Rustfmt (pull_request) Waiting to run
CI / Flatpak (pull_request) Waiting to run
d97920f734
feat: implement avatar caching and display for chats
Some checks are pending
CI / Rustfmt (pull_request) Waiting to run
CI / Flatpak (pull_request) Waiting to run
6d9d758949
Add avatar support with the following changes:
- Create avatar_cache module for downloading and caching profile pictures
- Add avatar_path field to Chat state and database
- Implement FetchAvatar client command to download from WhatsApp
- Display avatars in chat list with fallback to initials
- Load cached avatars on startup and fetch missing ones
- Handle avatar updates through AppMsg::AvatarUpdated events
alisson force-pushed feat/history-sync from 6d9d758949
Some checks are pending
CI / Rustfmt (pull_request) Waiting to run
CI / Flatpak (pull_request) Waiting to run
to 3b0cb2e53b
Some checks are pending
CI / Rustfmt (pull_request) Waiting to run
CI / Flatpak (pull_request) Waiting to run
2026-03-01 21:29:31 -03:00
Compare
refactor: reorder struct fields and clean up imports for consistency
Some checks are pending
CI / Rustfmt (pull_request) Waiting to run
CI / Flatpak (pull_request) Waiting to run
d322bc6824
refactor: remove unused variable and fix message iteration order
Some checks failed
CI / Rustfmt (pull_request) Has been cancelled
CI / Flatpak (pull_request) Has been cancelled
467727df59
alisson force-pushed feat/history-sync from 467727df59
Some checks failed
CI / Rustfmt (pull_request) Has been cancelled
CI / Flatpak (pull_request) Has been cancelled
to 31b861d70f 2026-03-24 20:06:09 -03:00
Compare
andrielfr force-pushed feat/history-sync from 31b861d70f to c10a1dc0c7 2026-03-25 01:31:38 -03:00 Compare
andrielfr approved these changes 2026-03-25 01:36:27 -03:00
andrielfr merged commit c82d504140 into master 2026-03-25 01:36:40 -03:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AmanoTeam/Papo!4
No description provided.