feat: implement chats history synchronization on login #4

Open
alisson wants to merge 5 commits from feat/history-sync into master
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 are pending
CI / Rustfmt (pull_request) Waiting to run
CI / Flatpak (pull_request) Waiting to run
467727df59
Some checks are pending
CI / Rustfmt (pull_request) Waiting to run
CI / Flatpak (pull_request) Waiting to run
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin feat/history-sync:feat/history-sync
git switch feat/history-sync

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch master
git merge --no-ff feat/history-sync
git switch feat/history-sync
git rebase master
git switch master
git merge --ff-only feat/history-sync
git switch feat/history-sync
git rebase master
git switch master
git merge --no-ff feat/history-sync
git switch master
git merge --squash feat/history-sync
git switch master
git merge --ff-only feat/history-sync
git switch master
git merge feat/history-sync
git push origin master
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
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.