QuisApp / flutter_contacts

MIT License
83 stars 138 forks source link

Setting contact.photo = null does not delete the image #149

Closed dmcrider closed 6 months ago

dmcrider commented 6 months ago

In the Full Example in this repo, it looks like setting contact.photo = null should delete the existing photo. However, it doesn't seem to be working that way.

I've set it to null and refreshed the view only to find the image still there. Am I doing something wrong?

dmcrider commented 6 months ago

Turns out if you set the photo and then check contact.photoOrThumbnail, that will return true, so you have to set both contact.photo = null and contact.thumbnail = null to "delete" the profile image.