Fix/improve minor things

This commit is contained in:
Tulir Asokan
2018-08-26 22:50:28 +03:00
parent a6ebc50f6d
commit 65f077c645
4 changed files with 13 additions and 2 deletions

View File

@ -187,6 +187,9 @@ func (puppet *Puppet) UpdateAvatar(avatar *whatsappExt.ProfilePicInfo) bool {
func (puppet *Puppet) Sync(contact whatsapp.Contact) {
puppet.Intent().EnsureRegistered()
if contact.Jid == puppet.user.JID() {
contact.Notify = puppet.user.Conn.Info.Pushname
}
newName := puppet.bridge.Config.Bridge.FormatDisplayname(contact)
if puppet.Displayname != newName {
err := puppet.Intent().SetDisplayName(newName)