Only use contact name when it's not an empty string

master
Hugo Thunnissen 4 years ago
parent 33eb18e687
commit 2c70082e75

@ -268,7 +268,7 @@ func DetermineSenderName(b *core.BridgeContext, info whatsapp.MessageInfo) strin
} }
contact, ok := b.WhappConn.Store.Contacts[senderName] contact, ok := b.WhappConn.Store.Contacts[senderName]
if ok { if ok && contact.Name != "" {
senderName = contact.Name senderName = contact.Name
} }

Loading…
Cancel
Save