Fix autocomplation for jids where username is set as nickname. Fixes #2608.
This commit is contained in:
parent
6c8de6b1da
commit
5f82f1a413
|
@ -206,6 +206,8 @@ def get_contact_dict_for_account(account):
|
|||
contacts_dict['%s (%s)' % (name, contact1.jid)] = contact1
|
||||
contacts_dict['%s (%s)' % (name, jid)] = contact
|
||||
else:
|
||||
if contact.name == gajim.get_nick_from_jid(jid):
|
||||
del contacts_dict[jid]
|
||||
contacts_dict[name] = contact
|
||||
return contacts_dict
|
||||
|
||||
|
|
Loading…
Reference in New Issue