mail icon indicating copy to clipboard operation
mail copied to clipboard

Fix contacts photo integration picking wrong PHOTO entry

Open sazanof opened this issue 2 years ago • 0 comments

Hello everyone! =)

I found in 2 places that avatars are loaded incorrectly.

  1. ~~In the list of recipients in the letter How to reproduce: add 1 contact with the address [email protected] (in my case, this is a mailing group) and с[email protected] and set avatars for them Write to [email protected] from your email Open this email and see that the wrong avatar is in the recipient list. Click on "details" and see that in the list of "identical contacts" all@ and call@~~ Move to https://github.com/nextcloud/mail/pull/6714

  2. In a message and in the list of message How to reproduce: There should be 2 contacts with the same e-mail (one of them with an avatar). I have this bug when creating my adressbook + recent contacts (which appeared themselves earlier than my address book) The problem is that if an array > 1 element can fall into the $result variable, then the first element is returned. if the photo is in the second element, the first one will be returned WITHOUT the photo.

Thank you!

It may also occur in https://github.com/nextcloud/mail/issues/4580

Signed-off-by: Mikhail Sazanov [email protected]

sazanof avatar Jun 08 '22 09:06 sazanof