Repository navigation
Conversation
30a35fc to
058e15b
Compare
058e15b to
e4bf870
Compare
The circle beside a message now shows the sender's actual face when GNOME Contacts has one. A background thread indexes photo locations from Evolution Data Server's address-book caches (local and CardDAV), and rows resolve through a personal-first chain: contact photo, then Gravatar, then the domain's icon, then coloured initials — each tier consulted only while its switch is on, so turning one off hides its cached images immediately. Safety and privacy carry the design: remote vCard PHOTO URLs are never fetched, file:// photos are confined to EDS's own directories (with tests covering .. traversal, symlink escapes and lookalike siblings), only known raster formats reach the decoder — never SVG — and images are size-capped and downscaled during decode, off the GTK thread. No Gravatar hash leaves the machine before the local index has had a chance to answer, and Gravatar now receives a SHA-256 hash rather than a dictionary-reversible MD5. Photo changes from an EDS sync refresh visible circles without moving the scroll position. Adapted from PR #8: the contact index and avatar state machine are Anton's, unified here with the newer sender-logo tier and reader. Co-Authored-By: Anton Palgunov <2198153+Toxblh@users.noreply.github.com> Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Anton — thank you again. This one ships almost whole: contact photos as sender avatars are in v1.14.4, released today, adapted from this PR and credited to you via As with #7, it landed as an adapted commit rather than a merge — two things made a straight merge impossible:
Kept from your PR essentially intact: the EDS photo-location index with the fingerprint-stability rescan, the vCard PHOTO parsing (Nextcloud data-URIs, folded Changed while landing:
Noted for follow-up rather than changed: the 30-second stat-polling watcher (we may move it to EDS D-Bus signals, matching how GOA is watched since v1.14.3), per-lookup SQLite opens, and cache growth over long sessions. Closing since the feature is on |
The circle beside a message now shows the sender's actual face when GNOME Contacts has one. A background thread indexes photo locations from Evolution Data Server's address-book caches (local and CardDAV), and rows resolve through a personal-first chain: contact photo, then Gravatar, then the domain's icon, then coloured initials — each tier consulted only while its switch is on, so turning one off hides its cached images immediately. Safety and privacy carry the design: remote vCard PHOTO URLs are never fetched, file:// photos are confined to EDS's own directories (with tests covering .. traversal, symlink escapes and lookalike siblings), only known raster formats reach the decoder — never SVG — and images are size-capped and downscaled during decode, off the GTK thread. No Gravatar hash leaves the machine before the local index has had a chance to answer, and Gravatar now receives a SHA-256 hash rather than a dictionary-reversible MD5. Photo changes from an EDS sync refresh visible circles without moving the scroll position. Adapted from PR hyprlab#8: the contact index and avatar state machine are Anton's, unified here with the newer sender-logo tier and reader. Co-Authored-By: Anton Palgunov <2198153+Toxblh@users.noreply.github.com>
Summary
ENCODING=b, grouped properties and safe EDSfile://photosPrivacy
Testing
cargo check --lockedcargo test --locked— 48 passedcargo clippy --all-targets --locked— passes; pre-existing style warnings remainschavelevoi@basealt.ru