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:
parent
f39fd2a861
commit
5b9a784b68
|
@ -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
|
# If there is another resource, it may be a message from an invisible
|
||||||
# resource
|
# resource
|
||||||
lcontact = gajim.contacts.get_contacts_from_jid(account, jid)
|
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:
|
lcontact[0].show != 'offline')) and jid.find('@') > 0:
|
||||||
contact = gajim.contacts.copy_contact(highest_contact)
|
contact = gajim.contacts.copy_contact(highest_contact)
|
||||||
contact.resource = resource
|
contact.resource = resource
|
||||||
|
|
Loading…
Reference in New Issue