From e6663c317c27efba3cfeea498d9ff91695e913ec Mon Sep 17 00:00:00 2001 From: mathieui Date: Wed, 9 Nov 2011 21:02:37 +0100 Subject: [PATCH] Do not display an empty message when only a chatstate is received (again). --- src/core.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/core.py b/src/core.py index 35e2040f..b352f627 100644 --- a/src/core.py +++ b/src/core.py @@ -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)