aboutsummaryrefslogtreecommitdiff
path: root/plugins/openpgp/src
diff options
context:
space:
mode:
authorfiaxh <git@mx.ax.lt>2017-10-30 01:43:26 +0100
committerfiaxh <git@mx.ax.lt>2017-10-31 17:32:48 +0100
commitd82194af58c8ff92634ce57ef293894ec4422efa (patch)
tree17208ffd0b57dfa131e91d351c38cd75d2ad7ea7 /plugins/openpgp/src
parent0102abeec1d2055b19dccbb7edc7f06e527642b1 (diff)
downloaddino-d82194af58c8ff92634ce57ef293894ec4422efa.tar.gz
dino-d82194af58c8ff92634ce57ef293894ec4422efa.zip
Go offline before quiting application
fixes #141
Diffstat (limited to 'plugins/openpgp/src')
-rw-r--r--plugins/openpgp/src/out_file_processor.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/openpgp/src/out_file_processor.vala b/plugins/openpgp/src/out_file_processor.vala
index a09e17a6..c644a190 100644
--- a/plugins/openpgp/src/out_file_processor.vala
+++ b/plugins/openpgp/src/out_file_processor.vala
@@ -21,7 +21,7 @@ public class OutFileProcessor : OutgoingFileProcessor, Object {
uint8[] enc_content = GPGHelper.encrypt_file(uri, keys, GPG.EncryptFlags.ALWAYS_TRUST);
file_transfer.input_stream = new MemoryInputStream.from_data(enc_content, GLib.free);
file_transfer.encryption = Encryption.PGP;
- file_transfer.server_file_name = file_transfer.server_file_name + ".pgp";
+ file_transfer.server_file_name = Xmpp.random_uuid() + ".pgp";
} catch (Error e) {
file_transfer.state = FileTransfer.State.FAILED;
}