Commit 147ab8d8 authored by Philipp Hörist's avatar Philipp Hörist

[omemo] Correctly handle MAM Messages without real jid

Fixes #457
parent 873d7f32
......@@ -273,8 +273,9 @@ class OMEMO(BaseModule):'Message received, archive: %s', properties.mam.archive)
if properties.from_muc:'MUC MAM Message received')
if properties.muc_user.jid is None:'No real jid found')
if properties.muc_user is None or properties.muc_user.jid is None:
self._log.warning('Received MAM Message which can '
'not be mapped to a real jid')
return properties.muc_user.jid.getBare()
return properties.from_.getBare()
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment