Fix MUC private messages

(bug introduced in 1c9257)
This commit is contained in:
mathieui 2015-04-16 14:05:33 +02:00
parent e78ed92ba3
commit 39c01fe3b6
No known key found for this signature in database
GPG key ID: C59F84CEEFD616E3

View file

@ -224,6 +224,11 @@ def on_message(self, message):
if message['type'] == 'groupchat':
return
# Differentiate both type of messages, and call the appropriate handler.
jid_from = message['from']
for tab in self.get_tabs(tabs.MucTab):
if tab.name == jid_from.bare:
if message['type'] == 'chat':
return self.on_groupchat_private_message(message)
return self.on_normal_message(message)
def on_error_message(self, message):