summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2011-11-09 21:02:37 +0100
committermathieui <mathieui@mathieui.net>2011-11-09 21:02:37 +0100
commite6663c317c27efba3cfeea498d9ff91695e913ec (patch)
tree6293e6d942c64c53ab8ed801d6b2364709b0fffa /src
parenta7ed473437b6bc476c579e2e778947c572e7cd40 (diff)
downloadpoezio-e6663c317c27efba3cfeea498d9ff91695e913ec.tar.gz
poezio-e6663c317c27efba3cfeea498d9ff91695e913ec.tar.bz2
poezio-e6663c317c27efba3cfeea498d9ff91695e913ec.tar.xz
poezio-e6663c317c27efba3cfeea498d9ff91695e913ec.zip
Do not display an empty message when only a chatstate is received
(again).
Diffstat (limited to 'src')
-rw-r--r--src/core.py4
1 files changed, 1 insertions, 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)