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

[omemo] Fix method call

parent e4adc375
......@@ -188,7 +188,7 @@ class OmemoPlugin(GajimPlugin):
self.connections[].encrypt_message(conn, obj, callback)
def _file_decryption(self, url, kind, instance, window):
url, kind, instance, window)
def encrypt_file(self, file, callback):
......@@ -198,8 +198,8 @@ class OmemoPlugin(GajimPlugin):
def _encrypt_file_thread(file, callback):
encrypted_data, key, iv = file_decryption.encrypt_file(
def _encrypt_file_thread(file, callback, *args, **kwargs):
encrypted_data, key, iv = file_crypto.encrypt_file(
file.encrypted = True
file.size = len(encrypted_data)
Supports Markdown
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