Skip to content
Snippets Groups Projects
Commit 5f82f1a4 authored by steve-e's avatar steve-e
Browse files

Fix autocomplation for jids where username is set as nickname. Fixes #2608.

parent 6c8de6b1
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment