Skip to content
Snippets Groups Projects
Commit 147ab8d8 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

[omemo] Correctly handle MAM Messages without real jid

Fixes #457
parent 873d7f32
No related branches found
No related tags found
No related merge requests found
......@@ -273,8 +273,9 @@ class OMEMO(BaseModule):
self._log.info('Message received, archive: %s', properties.mam.archive)
if properties.from_muc:
self._log.info('MUC MAM Message received')
if properties.muc_user.jid is None:
self._log.info('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
return properties.muc_user.jid.getBare()
return properties.from_.getBare()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment