diff options
author | fiaxh <git@mx.ax.lt> | 2018-01-28 20:56:27 +0100 |
---|---|---|
committer | fiaxh <git@mx.ax.lt> | 2018-01-28 22:00:22 +0100 |
commit | f6db249c92e8fd25c1cb52872d3a647be034b626 (patch) | |
tree | 65ebb9d61fd27dcfd37a26137f507413193902d3 /plugins/openpgp/src/out_file_processor.vala | |
parent | bec810e234a7b9783eb8f35e2ffd7c60d75e09c7 (diff) | |
download | dino-f6db249c92e8fd25c1cb52872d3a647be034b626.tar.gz dino-f6db249c92e8fd25c1cb52872d3a647be034b626.zip |
Only display transferred images, display file names, open in system viewer, include and use pgp embedded file names
Diffstat (limited to 'plugins/openpgp/src/out_file_processor.vala')
-rw-r--r-- | plugins/openpgp/src/out_file_processor.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/openpgp/src/out_file_processor.vala b/plugins/openpgp/src/out_file_processor.vala index c644a190..522e518a 100644 --- a/plugins/openpgp/src/out_file_processor.vala +++ b/plugins/openpgp/src/out_file_processor.vala @@ -15,10 +15,10 @@ public class OutFileProcessor : OutgoingFileProcessor, Object { } public void process(Conversation conversation, FileTransfer file_transfer) { - string uri = file_transfer.get_uri(); + string path = file_transfer.get_file().get_path(); try { GPG.Key[] keys = stream_interactor.get_module(Manager.IDENTITY).get_key_fprs(conversation); - uint8[] enc_content = GPGHelper.encrypt_file(uri, keys, GPG.EncryptFlags.ALWAYS_TRUST); + uint8[] enc_content = GPGHelper.encrypt_file(path, keys, GPG.EncryptFlags.ALWAYS_TRUST, file_transfer.file_name); file_transfer.input_stream = new MemoryInputStream.from_data(enc_content, GLib.free); file_transfer.encryption = Encryption.PGP; file_transfer.server_file_name = Xmpp.random_uuid() + ".pgp"; |