Skip to content
Snippets Groups Projects
Commit 5e4cf4a6 authored by Bahtiar Gadimov's avatar Bahtiar Gadimov
Browse files

Document encryption in create_msg

parent 48ac9ee2
No related branches found
No related tags found
No related merge requests found
......@@ -167,10 +167,12 @@ class OmemoState:
return
my_other_devices = set(self.own_devices) - set({self.own_device_id})
# Encrypt the message key with for each of our own devices
for dev in my_other_devices:
cipher = self.get_session_cipher(from_jid, dev)
encrypted_keys[dev] = cipher.encrypt(key).serialize()
# Encrypt the message key with for each of receivers devices
for rid, cipher in session_ciphers.items():
try:
encrypted_keys[rid] = cipher.encrypt(key).serialize()
......
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