Commit 02eaaa7d authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Set from to own jid if attr is not present

parent ba07eccc
......@@ -519,6 +519,9 @@ class XMPPDispatcher(PlugIn):
log.warning('Message addressed to someone else: %s', stanza)
if stanza.getFrom() is None:
# Unwrap carbon
stanza, properties.carbon_type = unwrap_carbon(stanza, own_jid)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment