Commit d2f84507 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

[omemo] Adapt to Gajim HTTPUpload changes

parent fe725020
......@@ -221,13 +221,12 @@ class OmemoPlugin(GajimPlugin):
def _encrypt_file_thread(file, callback, *args, **kwargs):
result = aes_encrypt_file(file.get_data(full=True))
file.encrypted = True
result = aes_encrypt_file(file.get_data())
file.size = len(result.payload)
file.user_data = binascii.hexlify(result.iv + result.key).decode() = result.payload
if file.event.isSet():
fragment = binascii.hexlify(result.iv + result.key).decode()
lambda uri: 'aesgcm%s#%s' % (uri[5:], fragment))
GLib.idle_add(callback, file)
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