aboutsummaryrefslogtreecommitdiff
path: root/plugins/omemo
diff options
context:
space:
mode:
authorNkwuda Sunday Cletus <49409497+sunny775@users.noreply.github.com>2022-03-23 14:42:43 -0500
committerGitHub <noreply@github.com>2022-03-23 20:42:43 +0100
commitc5ed719b665938a59011913e39ce94df63690b40 (patch)
tree7b75c11847f8b197c406a003a479f4f0cbd0c916 /plugins/omemo
parentf0ed11ec49b6c5b3a52bc666e31ff9791dee77cf (diff)
downloaddino-c5ed719b665938a59011913e39ce94df63690b40.tar.gz
dino-c5ed719b665938a59011913e39ce94df63690b40.zip
set a generic MIME type for encrypted file (#1213)
Diffstat (limited to 'plugins/omemo')
-rw-r--r--plugins/omemo/src/file_transfer/file_encryptor.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/omemo/src/file_transfer/file_encryptor.vala b/plugins/omemo/src/file_transfer/file_encryptor.vala
index 7e79abdc..39af8292 100644
--- a/plugins/omemo/src/file_transfer/file_encryptor.vala
+++ b/plugins/omemo/src/file_transfer/file_encryptor.vala
@@ -38,7 +38,7 @@ public class OmemoFileEncryptor : Dino.FileEncryptor, Object {
omemo_http_file_meta.iv = iv;
omemo_http_file_meta.key = key;
omemo_http_file_meta.size = file_transfer.size + 16;
- omemo_http_file_meta.mime_type = "omemo";
+ omemo_http_file_meta.mime_type = "application/octet-stream";
file_transfer.input_stream = new ConverterInputStream(file_transfer.input_stream, new SymmetricCipherEncrypter((owned) cipher, 16));
} catch (Crypto.Error error) {
throw new FileSendError.ENCRYPTION_FAILED("OMEMO file encryption error: %s".printf(error.message));