Pass the "force" parameter to the avatar update

This commit is contained in:
Michael 2022-05-27 05:36:07 +00:00
parent e793438e0d
commit 0a43fe857c
2 changed files with 6 additions and 5 deletions

View file

@ -2049,7 +2049,7 @@ class Contact
}
} else {
Photo::delete(['uid' => $uid, 'contact-id' => $cid, 'photo-type' => Photo::CONTACT_AVATAR]);
$fields = Avatar::fetchAvatarContact($contact, $avatar);
$fields = Avatar::fetchAvatarContact($contact, $avatar, $force);
$update = ($avatar . $fields['photo'] . $fields['thumb'] . $fields['micro'] != $contact['avatar'] . $contact['photo'] . $contact['thumb'] . $contact['micro']) || $force;
}