don't copy contact when the only one has no resource. it means it's the first message we got. fixes #2652

This commit is contained in:
Yann Leboulanger 2006-11-08 17:23:57 +00:00
parent f39fd2a861
commit 5b9a784b68
1 changed files with 1 additions and 1 deletions

View File

@ -2799,7 +2799,7 @@ _('If "%s" accepts this request you will know his or her status.') % jid)
# If there is another resource, it may be a message from an invisible
# resource
lcontact = gajim.contacts.get_contacts_from_jid(account, jid)
if (len(lcontact) > 1 or (lcontact and \
if (len(lcontact) > 1 or (lcontact and lcontact[0].resource and \
lcontact[0].show != 'offline')) and jid.find('@') > 0:
contact = gajim.contacts.copy_contact(highest_contact)
contact.resource = resource