From 0a9351353171d6da4903289ae63267688b475db8 Mon Sep 17 00:00:00 2001 From: Andrea Maria Piana Date: Tue, 15 Dec 2020 17:23:48 +0100 Subject: [PATCH] Add images field to HasCustomFields --- protocol/contact.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/contact.go b/protocol/contact.go index c90b63f47..33689cc10 100644 --- a/protocol/contact.go +++ b/protocol/contact.go @@ -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 {