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

[omemo] Fix method call

parent e4adc375
......@@ -188,7 +188,7 @@ class OmemoPlugin(GajimPlugin):
self.connections[conn.name].encrypt_message(conn, obj, callback)
def _file_decryption(self, url, kind, instance, window):
file_decryption.FileDecryption(self).hyperlink_handler(
file_crypto.FileDecryption(self).hyperlink_handler(
url, kind, instance, window)
def encrypt_file(self, file, callback):
......@@ -198,8 +198,8 @@ class OmemoPlugin(GajimPlugin):
thread.start()
@staticmethod
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.get_data(full=True))
file.encrypted = True
file.size = len(encrypted_data)
......
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