Do not add the resource when morphing a GC_Contact to a normal Contact.
gc_contact.jid and gc_contact.resource are empty in anonymous rooms. In non-anonymous rooms those contain the real jid and resource of the contact. We must not mix those information with the jid of the contact in the groupchat: We assumed that "test@conference.gajim.org/nick" was the Jid and 'someresource' the resource. So we tried to talk to 'test@conference.gajim.org/nick/someresource'.
This commit is contained in:
parent
acf06b4470
commit
228678d6e8
1 changed files with 2 additions and 2 deletions
|
@ -204,8 +204,8 @@ class GC_Contact(CommonContact):
|
|||
Create a Contact instance from this GC_Contact instance
|
||||
"""
|
||||
return Contact(jid=self.get_full_jid(), account=self.account,
|
||||
resource=self.resource, name=self.name, groups=[], show=self.show,
|
||||
status=self.status, sub='none', client_caps=self.client_caps)
|
||||
name=self.name, groups=[], show=self.show, status=self.status,
|
||||
sub='none', client_caps=self.client_caps)
|
||||
|
||||
|
||||
class LegacyContactsAPI:
|
||||
|
|
Loading…
Add table
Reference in a new issue