Commit 0e29da0f authored by Kamay's avatar Kamay
Browse files

[pgp] Fixed file sharing feature.

The encrypt_file method from PGP module needed a stream instead of
bytes.
parent d349e5bf
Pipeline #7662 failed with stage
......@@ -281,8 +281,11 @@ class PGPLegacy(BaseModule):
self._log.warning(error)
return
encrypted = self._pgp.encrypt_file(file.get_data(),
stream = open(file.path, "rb")
encrypted = self._pgp.encrypt_file(stream,
[key_id, own_key_id])
stream.close()
if not encrypted:
GLib.idle_add(self._on_file_encryption_error, encrypted.status)
return
......
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