Do not display messages if they have an empty body after the hook
This commit is contained in:
parent
15fce04294
commit
4873bab740
1 changed files with 2 additions and 0 deletions
|
@ -2389,6 +2389,8 @@ class Core(object):
|
||||||
conversation = self.get_conversation_by_jid(jid, create=True)
|
conversation = self.get_conversation_by_jid(jid, create=True)
|
||||||
self.events.trigger('conversation_msg', message, conversation)
|
self.events.trigger('conversation_msg', message, conversation)
|
||||||
body = xhtml.get_body_from_message_stanza(message)
|
body = xhtml.get_body_from_message_stanza(message)
|
||||||
|
if not body:
|
||||||
|
return
|
||||||
if jid.bare in roster:
|
if jid.bare in roster:
|
||||||
remote_nick = roster[jid.bare].name or jid.user
|
remote_nick = roster[jid.bare].name or jid.user
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue