-
Notifications
You must be signed in to change notification settings - Fork 624
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Fix the "Someone" nickname problem (whatsapp) #1931
Conversation
If i move
to the place of
the patch stops working. |
if sender, exists := b.contacts[senderJid]; exists { | ||
if sender.FullName != "" { | ||
return sender.FullName | ||
func (b *Bwhatsapp) getSenderName(info types.MessageInfo) string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Method Bwhatsapp.getSenderName
has a Cognitive Complexity of 21 (exceeds 20 allowed). Consider refactoring.
I have noticed that the |
Code Climate has analyzed commit 2200a9c and detected 0 issues on this pull request. View more on Code Climate. |
Thanks! |
Fix #1876 and code cleanup