Do not display an empty message when only a chatstate is received

(again).
This commit is contained in:
mathieui 2011-11-09 21:02:37 +01:00
parent a7ed473437
commit e6663c317c

View file

@ -621,9 +621,7 @@ class Core(object):
if not body:
if message['type'] == 'error':
self.information(self.get_error_message_from_error_stanza(message), 'Error')
return
elif not conversation:
return
return
conversation = self.get_tab_of_conversation_with_jid(jid, create=True)
self.events.trigger('conversation_msg', message, conversation)
body = xhtml.get_body_from_message_stanza(message)