summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2017-10-14 22:07:17 +0200
committermathieui <mathieui@mathieui.net>2017-10-14 22:07:17 +0200
commitdb69afc1714f98726cfb336d54dec947b77a90a1 (patch)
tree5f4d16040d152e2f660cbfb9ec27695c11119972
parentc8e04d929c22a1a9a4b15b827162065fb5599f1a (diff)
downloadpoezio-db69afc1714f98726cfb336d54dec947b77a90a1.tar.gz
poezio-db69afc1714f98726cfb336d54dec947b77a90a1.tar.bz2
poezio-db69afc1714f98726cfb336d54dec947b77a90a1.tar.xz
poezio-db69afc1714f98726cfb336d54dec947b77a90a1.zip
Fix #3316 (normal private messages in MUC do not open a private tab)
-rw-r--r--poezio/core/handlers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/poezio/core/handlers.py b/poezio/core/handlers.py
index a26ead72..e6d54558 100644
--- a/poezio/core/handlers.py
+++ b/poezio/core/handlers.py
@@ -212,7 +212,7 @@ class HandlerCore:
jid_from = message['from']
for tab in self.core.get_tabs(tabs.MucTab):
if tab.name == jid_from.bare:
- if message['type'] == 'chat':
+ if jid_from.resource:
self.on_groupchat_private_message(message)
return
self.on_normal_message(message)