Fix MUC private messages
(bug introduced in 1c9257)
This commit is contained in:
parent
e78ed92ba3
commit
39c01fe3b6
1 changed files with 5 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue