Commit baefb772 authored by Philipp Hörist's avatar Philipp Hörist

[omemo] Better handle key exchange messages

parent cfa69e94
......@@ -211,9 +211,12 @@ class OmemoState:
log.warning('Duplicate message found ' + str(e.args))
return
result = decrypt(key, iv, payload)
log.debug("Decrypted Message => " + result)
if payload is None:
result = None
log.debug("Decrypted Key Exchange Message")
else:
result = decrypt(key, iv, payload)
log.debug("Decrypted Message => " + result)
return result
def create_msg(self, from_jid, jid, plaintext):
......
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