diff options
author | Mathieu Pasquet <mathieui@mathieui.net> | 2013-10-06 18:03:38 +0200 |
---|---|---|
committer | Mathieu Pasquet <mathieui@mathieui.net> | 2013-10-06 18:03:38 +0200 |
commit | 8e63ad3a083232870bd1bd0d2bd45790387ad8e5 (patch) | |
tree | ac6084da3446bf4e923a2bc3c2cb6f044fba07b0 | |
parent | 91fe1f5c592be64dce2180c97d956b3942cac241 (diff) | |
download | poezio-8e63ad3a083232870bd1bd0d2bd45790387ad8e5.tar.gz poezio-8e63ad3a083232870bd1bd0d2bd45790387ad8e5.tar.bz2 poezio-8e63ad3a083232870bd1bd0d2bd45790387ad8e5.tar.xz poezio-8e63ad3a083232870bd1bd0d2bd45790387ad8e5.zip |
Fix #2373 (/message creates duplicate tabs)
-rw-r--r-- | src/core.py | 3 |
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) |