diff --git a/user.go b/user.go index 09f08f7..28f80b6 100644 --- a/user.go +++ b/user.go @@ -676,6 +676,9 @@ func (user *User) putMessage(message PortalMessage) { func (user *User) HandleNewContact(contact whatsapp.Contact) { user.log.Debugfln("Contact message: %+v", contact) go func() { + if strings.HasSuffix(contact.Jid, whatsappExt.OldUserSuffix) { + contact.Jid = strings.Replace(contact.Jid, whatsappExt.OldUserSuffix, whatsappExt.NewUserSuffix, -1) + } puppet := user.bridge.GetPuppetByJID(contact.Jid) puppet.UpdateName(user, contact) }()