mirror of
https://github.com/bulwarkmail/native.git
synced 2026-11-03 00:06:39 +00:00
ContactsProvider keeps a photo within its 96 px thumbnail as the thumbnail alone, without a PHOTO_FILE_ID, and the thumbnail does not read back. Such a Photo row looked empty to the planner. Every download of the card inserted the photo again (two, then three rows), and any edit of the contact on the device deleted the photo on the server. A Photo row now always counts as the contact's photo. Photo rows that earlier downloads added again are deleted by the contact's next clean write, one row is kept, and nothing reaches the server for them. A photo set on the device is still uploaded. Checked with planner tests and end to end through the engine, with a provider that stores small photos as thumbnails as the device does.