Skip to content

Commit

Permalink
Cleanup (whatsapp)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilmaisin committed Dec 6, 2022
1 parent 0b14df5 commit 2200a9c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bridge/whatsappmulti/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ func (b *Bwhatsapp) getSenderName(info types.MessageInfo) string {
sender, exists = b.contacts[senderJid]
}

if exists && ( sender.FullName != "" ) {
if exists && sender.FullName != "" {
return sender.FullName
}

if info.PushName != "" {
return info.PushName
}

if exists && ( sender.FirstName != "" ) {
if exists && sender.FirstName != "" {
return sender.FirstName
}

Expand All @@ -72,11 +72,11 @@ func (b *Bwhatsapp) getSenderNotify(senderJid types.JID) string {
return "someone"
}

if sender.FullName != "" {
if exists && sender.FullName != "" {
return sender.FullName
}

if sender.PushName != "" {
if exists && sender.PushName != "" {
return sender.PushName
}

Expand Down

0 comments on commit 2200a9c

Please # to comment.