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…
Reference in New Issue