diff options
author | Philipp Hörist <philipp@hoerist.com> | 2019-12-19 01:34:34 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2019-12-19 01:34:34 +0300 |
commit | 4498dc4ff536bc3b67b2e773c310a922c5ed2346 (patch) | |
tree | 3808503be437630463be0637194e81698817ed2f /pgp | |
parent | cfd79361582141af8a2380cff40d5c94bd287c48 (diff) |
[pgp] Adapt to Gajim HTTPUpload changes
Diffstat (limited to 'pgp')
-rw-r--r-- | pgp/modules/pgp_legacy.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/pgp/modules/pgp_legacy.py b/pgp/modules/pgp_legacy.py index 37e1ed6..368d8e3 100644 --- a/pgp/modules/pgp_legacy.py +++ b/pgp/modules/pgp_legacy.py @@ -281,12 +281,9 @@ class PGPLegacy(BaseModule): GLib.idle_add(self._on_file_encryption_error, encrypted.status) return - file.encrypted = True file.size = len(encrypted.data) - file.path += '.pgp' - file.data = encrypted.data - if file.event.isSet(): - return + file.set_uri_transform_func(lambda uri: '%s.pgp' % uri) + file.set_encrypted_data(encrypted.data) GLib.idle_add(callback, file) @staticmethod |