fix TB when we get a message from a not in roster contact
This commit is contained in:
parent
bb072aafb8
commit
17d17ae50f
|
@ -2798,8 +2798,8 @@ _('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[0].show != 'offline') and \
|
||||
jid.find('@') > 0:
|
||||
if (len(lcontact) > 1 or (lcontact and \
|
||||
lcontact[0].show != 'offline')) and jid.find('@') > 0:
|
||||
contact = gajim.contacts.copy_contact(highest_contact)
|
||||
contact.resource = resource
|
||||
contact.priority = 0
|
||||
|
|
Loading…
Reference in New Issue