summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMathieu Pasquet <mathieui@mathieui.net>2013-10-06 18:03:38 +0200
committerMathieu Pasquet <mathieui@mathieui.net>2013-10-06 18:03:38 +0200
commit8e63ad3a083232870bd1bd0d2bd45790387ad8e5 (patch)
treeac6084da3446bf4e923a2bc3c2cb6f044fba07b0 /src
parent91fe1f5c592be64dce2180c97d956b3942cac241 (diff)
downloadpoezio-8e63ad3a083232870bd1bd0d2bd45790387ad8e5.tar.gz
poezio-8e63ad3a083232870bd1bd0d2bd45790387ad8e5.tar.bz2
poezio-8e63ad3a083232870bd1bd0d2bd45790387ad8e5.tar.xz
poezio-8e63ad3a083232870bd1bd0d2bd45790387ad8e5.zip
Fix #2373 (/message creates duplicate tabs)
Diffstat (limited to 'src')
-rw-r--r--src/core.py3
1 files changed, 3 insertions, 0 deletions
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)