From 228678d6e8a73913e3ab361f67ec4c1517846e2a Mon Sep 17 00:00:00 2001 From: Stephan Erb Date: Sat, 5 Dec 2009 11:49:07 +0100 Subject: [PATCH] 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'. --- src/common/contacts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/contacts.py b/src/common/contacts.py index 591e839a3..ce1d78c43 100644 --- a/src/common/contacts.py +++ b/src/common/contacts.py @@ -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: