From a0df4ece76bcc0498023820cf1829694aeb49f6f Mon Sep 17 00:00:00 2001
From: Jean-Marie Traissard <jim@lapin.org>
Date: Thu, 25 May 2006 10:40:07 +0000
Subject: [PATCH] oups, fix reference problem

---
 src/roster_window.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/roster_window.py b/src/roster_window.py
index 4a1ae1c66e..298658dd95 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
-- 
GitLab