the Contact.jid returned by contact_from_gc_contact() function is the fake jid, even if we know the real jid. this means pm windows are index by the fake jid (gajim.interface.instances[account]['chats'][FAKE_JID])
This commit is contained in:
parent
3634814ce4
commit
32f5e74ef2
1 changed files with 2 additions and 7 deletions
|
@ -223,13 +223,8 @@ class Contacts:
|
|||
|
||||
def contact_from_gc_contact(self, gc_contact):
|
||||
'''Create a Contact instance from a GC_Contact instance'''
|
||||
if gc_contact.jid:
|
||||
jid = gc_contact.jid
|
||||
resource = gc_contact.resource
|
||||
else:
|
||||
jid = gc_contact.get_full_jid()
|
||||
resource = ''
|
||||
return Contact(jid = jid, resource = resource, name = gc_contact.name,
|
||||
jid = gc_contact.get_full_jid()
|
||||
return Contact(jid = jid, resource = '', name = gc_contact.name,
|
||||
groups = ['none'], show = gc_contact.show, status = gc_contact.status,
|
||||
sub = 'none')
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue