Commit 2a7f490e authored by Philipp Hörist's avatar Philipp Hörist

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