From 5f82f1a413dd7031480f2125c0708ec89a2d55e2 Mon Sep 17 00:00:00 2001 From: Stephan Erb Date: Wed, 13 Jun 2007 21:29:03 +0000 Subject: [PATCH] Fix autocomplation for jids where username is set as nickname. Fixes #2608. --- src/common/helpers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/helpers.py b/src/common/helpers.py index ed74c9a15..e3fa541d3 100644 --- a/src/common/helpers.py +++ b/src/common/helpers.py @@ -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