# HG changeset patch # User Goffi # Date 1552332445 -3600 # Node ID 520fd0f502336053d32fb7afafa095e6ef9aaa4d # Parent 896f78760b63cd935680f8488a014f48dfe78ce8 contact list: fixed crash with pb on addContact and delContact diff -r 896f78760b63 -r 520fd0f50233 cagou/plugins/plugin_wid_contact_list.py --- a/cagou/plugins/plugin_wid_contact_list.py Mon Mar 11 20:24:04 2019 +0100 +++ b/cagou/plugins/plugin_wid_contact_list.py Mon Mar 11 20:27:25 2019 +0100 @@ -67,7 +67,7 @@ if not contact_jid or not re.match(r"[^@ ]+@[^@ ]+", contact_jid): return contact_jid = jid.JID(contact_jid).bare - G.host.bridge.addContact(contact_jid, + G.host.bridge.addContact(unicode(contact_jid), self.profile, callback=lambda: G.host.addNote( _(u"contact request"), @@ -88,7 +88,7 @@ def do_delete_contact(self): self.hide() - G.host.bridge.delContact(self.contact_item.jid.bare, + G.host.bridge.delContact(unicode(self.contact_item.jid.bare), self.contact_item.profile, callback=lambda: G.host.addNote( _(u"contact removed"),