Fix #3316 (normal private messages in MUC do not open a private tab)

This commit is contained in:
mathieui 2017-10-14 22:07:17 +02:00
parent c8e04d929c
commit db69afc171
No known key found for this signature in database
GPG key ID: C59F84CEEFD616E3

View file

@ -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)