Commit 4498dc4f authored by Philipp Hörist's avatar Philipp Hörist

[pgp] Adapt to Gajim HTTPUpload changes

parent cfd79361
......@@ -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
......
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