Skip to content

Commit

Permalink
Re-examine if sender exists
Browse files Browse the repository at this point in the history
  • Loading branch information
ilmaisin committed Dec 2, 2022
1 parent 7cf4e4b commit 0b14df5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bridge/whatsappmulti/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ func (b *Bwhatsapp) getSenderName(info types.MessageInfo) string {

if !exists || (sender.FullName == "" && sender.FirstName == "") {
b.reloadContacts() // Contacts may need to be reloaded
sender, exists = b.contacts[senderJid]
}

if exists && ( sender.FullName != "" ) {
Expand All @@ -64,6 +65,7 @@ func (b *Bwhatsapp) getSenderNotify(senderJid types.JID) string {

if !exists || (sender.FullName == "" && sender.PushName == "" && sender.FirstName == "") {
b.reloadContacts() // Contacts may need to be reloaded
sender, exists = b.contacts[senderJid]
}

if !exists {
Expand Down

0 comments on commit 0b14df5

Please # to comment.