don't allow empty string in new chat dialog entry completion. Fixes #7760
This commit is contained in:
parent
e637d8ed15
commit
d026f79428
|
@ -655,7 +655,7 @@ def get_contact_dict_for_account(account):
|
||||||
del contacts_dict[name]
|
del contacts_dict[name]
|
||||||
contacts_dict['%s (%s)' % (name, contact1.jid)] = contact1
|
contacts_dict['%s (%s)' % (name, contact1.jid)] = contact1
|
||||||
contacts_dict['%s (%s)' % (name, jid)] = contact
|
contacts_dict['%s (%s)' % (name, jid)] = contact
|
||||||
else:
|
elif contact.name:
|
||||||
if contact.name == gajim.get_nick_from_jid(jid):
|
if contact.name == gajim.get_nick_from_jid(jid):
|
||||||
del contacts_dict[jid]
|
del contacts_dict[jid]
|
||||||
contacts_dict[name] = contact
|
contacts_dict[name] = contact
|
||||||
|
|
Loading…
Reference in New Issue