diff --git a/src/roster_window.py b/src/roster_window.py index 4a1ae1c66e1775d9372d732c2dd9f6d0aac8fdfb..298658dd95e19b677500d5e563c95e053074e37b 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -2127,10 +2127,10 @@ _('If "%s" accepts this request you will know his or her status.') % jid) if resource: fjid = jid + '/' + resource contact = gajim.contacts.get_contact(account, jid, resource) + highest_contact = gajim.contacts.get_contact_with_highest_priority( + account, jid) if not contact: # Default to highest prio - highest_contact = gajim.contacts.get_contact_with_highest_priority( - account, jid) fjid = jid resource_for_chat = None contact = highest_contact