MAM: Detect nbxmpp supported encryptions

This commit is contained in:
Philipp Hörist 2019-02-11 20:29:20 +01:00
parent 1256372d36
commit 6f61f05377
1 changed files with 11 additions and 7 deletions

View File

@ -164,6 +164,10 @@ class MAM:
else: else:
event = MamMessageReceivedEvent(None, **event_attrs) event = MamMessageReceivedEvent(None, **event_attrs)
if properties.is_encrypted:
event.additional_data['encrypted'] = properties.encrypted.additional_data
self._decryption_finished(event)
else:
app.plugin_manager.extension_point( app.plugin_manager.extension_point(
'decrypt', self._con, event, self._decryption_finished) 'decrypt', self._con, event, self._decryption_finished)