[omemo] Don't show info message for Key Transport message

If a Key Transport message is not encryped for us, don't show a warning.

Key Transport messages are sent for example to repair sessions with specific devices
and are generally not encrypted fo all known devices.
This commit is contained in:
Philipp Hörist
2020-01-19 19:37:54 +01:00
parent 667e1c7b1e
commit 2a7f490e8e

View File

@@ -246,6 +246,10 @@ class OMEMO(BaseModule):
return
except MessageNotForDevice:
if properties.omemo.payload is None:
# Key Transport message for another device
return
plaintext = _('This message was encrypted with OMEMO, '
'but not for your device.')
# Neither trust nor fingerprint can be verified if we didn't