From 8e63ad3a083232870bd1bd0d2bd45790387ad8e5 Mon Sep 17 00:00:00 2001 From: Mathieu Pasquet Date: Sun, 6 Oct 2013 18:03:38 +0200 Subject: Fix #2373 (/message creates duplicate tabs) --- src/core.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core.py b/src/core.py index 194c6f88..64d91262 100644 --- a/src/core.py +++ b/src/core.py @@ -782,6 +782,9 @@ class Core(object): jid = safeJID(jid) # We first check if we have a static conversation opened with this precise resource conversation = self.get_tab_by_name(jid.full, tabs.StaticConversationTab) + if jid.bare == jid.full and not conversation: + conversation = self.get_tab_by_name(jid.full, tabs.DynamicConversationTab) + if not conversation and fallback_barejid: # If not, we search for a conversation with the bare jid conversation = self.get_tab_by_name(jid.bare, tabs.DynamicConversationTab) -- cgit v1.2.3