Add images field to HasCustomFields

This commit is contained in:
Andrea Maria Piana 2020-12-15 17:23:48 +01:00
parent ac37e4f412
commit 0a93513531
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ func buildContact(publicKey *ecdsa.PublicKey) (*Contact, error) {
// HasCustomFields returns whether the the contact has any field that is valuable
// to the client other than the computed name/image
func (c Contact) HasCustomFields() bool {
return c.IsAdded() || c.HasBeenAdded() || c.IsBlocked() || c.ENSVerified || c.LocalNickname != ""
return c.IsAdded() || c.HasBeenAdded() || c.IsBlocked() || c.ENSVerified || c.LocalNickname != "" || len(c.Images) != 0
}
func contactIDFromPublicKey(key *ecdsa.PublicKey) string {