From b69d736c94c51e4ffa32f2028a8dc10d04648f14 Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Thu, 12 Oct 2006 16:37:08 +0000
Subject: [PATCH] prevent TB, call set_active() with jid without resource if we
 open window without resource

---
 src/gajim.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gajim.py b/src/gajim.py
index 2df7d893ce..d9ebe330b2 100755
--- a/src/gajim.py
+++ b/src/gajim.py
@@ -1763,6 +1763,7 @@ class Interface:
 					account, jid)
 				if resource and highest_contact.resource == resource:
 					resource = None
+					fjid = jid
 				contact = gajim.contacts.get_contact(account, jid, resource)
 				if not contact or isinstance(contact, list):
 					contact = highest_contact
-- 
GitLab