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

This commit is contained in:
Stephan Erb 2007-06-13 21:29:03 +00:00
parent 6c8de6b1da
commit 5f82f1a413
1 changed files with 2 additions and 0 deletions

View File

@ -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