mirror of
https://github.com/status-im/status-go.git
synced 2025-02-17 17:28:38 +00:00
Fix: ignore nil contact 'IsDisplayNameDupeOfCommunityMember' (#4956)
This commit is contained in:
parent
0aed93ff04
commit
c7e7445f5c
@ -614,6 +614,9 @@ func (m *Messenger) IsDisplayNameDupeOfCommunityMember(name string) (bool, error
|
||||
for _, community := range append(controlled, joined...) {
|
||||
for memberKey := range community.Members() {
|
||||
contact := m.GetContactByID(memberKey)
|
||||
if contact == nil {
|
||||
continue
|
||||
}
|
||||
if strings.Compare(contact.DisplayName, name) == 0 {
|
||||
return true, nil
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user